feat
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
mol
2023-09-05 18:22:22 +08:00
parent 85d897de11
commit b0720f2d48
2 changed files with 11 additions and 3 deletions

View File

@ -10,4 +10,12 @@ def remove_file(path):
try:
os.remove(path)
except:
pass
pass
def clear_dir():
temp_path = os.path.join(os.path.dirname(__file__), 'temp')
try:
os.rmdir(temp_path)
print('temp dir is cleared')
except:
print('temp clear failed')