mirror of
https://github.com/TriM-Organization/Linglun-Converter.git
synced 2026-01-25 13:11:58 +00:00
喵
This commit is contained in:
@@ -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__":
|
||||||
|
|||||||
Reference in New Issue
Block a user