1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 15:33:54 +00:00

ignore removing non-existing path

This commit is contained in:
deadc0de6
2019-10-22 08:20:14 +02:00
parent 3775917f6f
commit 2d64e2ee59

View File

@@ -94,6 +94,8 @@ def get_unique_tmp_name():
def remove(path, quiet=False):
"""remove a file/directory/symlink"""
if not path:
return
if not os.path.lexists(path):
if quiet:
return