mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-07 07:05:48 +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):
|
def remove(path, quiet=False):
|
||||||
"""remove a file/directory/symlink"""
|
"""remove a file/directory/symlink"""
|
||||||
|
if not path:
|
||||||
|
return
|
||||||
if not os.path.lexists(path):
|
if not os.path.lexists(path):
|
||||||
if quiet:
|
if quiet:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user