using unlink
This commit is contained in:
parent
66444f4952
commit
2850e18a47
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue