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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user