This commit is contained in:
2025-05-10 00:52:56 +08:00
parent c4b1202523
commit b2fd1c331b

View File

@ -26,6 +26,8 @@ def main():
): ):
if os.path.isdir(file) and os.access(file, os.W_OK): if os.path.isdir(file) and os.access(file, os.W_OK):
shutil.rmtree(file) shutil.rmtree(file)
elif os.path.isfile(file) and os.access(file, os.W_OK):
os.remove(file)
if __name__ == "__main__": if __name__ == "__main__":