Skip to content

Commit d3497d9

Browse files
authored
Pre1.0_3
1 parent 9242aa3 commit d3497d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

updater.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def get_zip_link(username:str, repository:str, branch:str="main"):
6767
def move_files(source_dir:str):
6868
for filename in os.listdir("_"):
6969
try: # Folder
70-
os.rmdir(filename)
70+
if not "softwares" in filename and not "ROOT" in filename:
71+
shutil.rmtree(filename)
7172
except NotADirectoryError: # File
7273
os.remove(filename)
7374
except PermissionError:

0 commit comments

Comments
 (0)