diff --git a/.github/workflows/post_compile.py b/.github/workflows/post_compile.py index 7044b89..7043b8d 100644 --- a/.github/workflows/post_compile.py +++ b/.github/workflows/post_compile.py @@ -41,6 +41,9 @@ def remove_un_use(): pass except PermissionError: pass + except IsADirectoryError: + # 如果是目录 + shutil.rmtree(file) os.chdir('../../')