Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/pathexist.py
2020-07-06 17:29:58 +08:00

21 lines
537 B
Python

import os
import re
def pathexist(ss):
ss = re.sub('_','',ss)
d = '/home/wdljt/oasisakari/bot/assests/Favicon/' + ss + '/'
if not os.path.exists(d):
os.mkdir(d)
else:
pass
ddd = '/home/wdljt/oasisakari/bot/assests/Favicon/' + ss + '/Wiki.png'
if not os.path.exists(ddd):
return False
else:
return True
def pathexist2(ss):
ddd = '/home/wdljt/oasisakari/bot/assests/usercard/' + ss + '.png'
if not os.path.exists(ddd):
return False
else:
return True