1
0
Fork 0

using unlink

This commit is contained in:
Christian Kühnel 2020-04-16 11:15:40 +02:00
parent 66444f4952
commit 2850e18a47

View file

@ -156,7 +156,7 @@ def secure_delete(path: str):
if not os.path.exists(name):
return
os.chmod(name, stat.S_IWRITE)
os.remove(name)
os.unlink(name)
shutil.rmtree(path, onerror=del_rw)