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-06-13 20:43:43 +08:00

21 lines
468 B
Python

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