忘记目录了

This commit is contained in:
shenjack 2023-03-02 13:25:11 +08:00
parent a27ae72115
commit 28a0e2bd4f

View File

@ -41,6 +41,9 @@ def remove_un_use():
pass pass
except PermissionError: except PermissionError:
pass pass
except IsADirectoryError:
# 如果是目录
shutil.rmtree(file)
os.chdir('../../') os.chdir('../../')