Only attempt to remove path if it exists

This commit is contained in:
Oz N Tiram
2023-08-21 00:41:08 +02:00
committed by Oz Tiram
parent 5e109afce9
commit c20312a690
+1 -1
View File
@@ -120,7 +120,7 @@ def remove_all(paths):
for path in paths:
if path.is_dir():
drop_dir(path)
else:
elif path.exists():
print(f"Removing {path}")
path.unlink()