cleaned up and added aliases to highscores
This commit is contained in:
parent
5764767236
commit
274bfe9834
2 changed files with 9 additions and 5 deletions
|
|
@ -159,7 +159,7 @@ async def folder_setup():
|
|||
os.mkdir(folder_name)
|
||||
return folder_names
|
||||
|
||||
async def delete_all_files(path, safe_folders):
|
||||
async def delete_all_files(path, safe_folders=None):
|
||||
for filename in os.listdir(path):
|
||||
if os.path.isdir(path+filename) and not path+filename in safe_folders:
|
||||
shutil.rmtree(path+filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue