This commit is contained in:
@ -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')
|
Reference in New Issue
Block a user