mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 15:39:43 +00:00
ignore special file
This commit is contained in:
@@ -302,6 +302,9 @@ def _cp(src, dst, ignore_func=None, debug=False):
|
||||
"""the copy function for copytree"""
|
||||
if ignore_func and ignore_func(src):
|
||||
return
|
||||
if not os.path.isfile(src):
|
||||
# ignore special files
|
||||
return
|
||||
dstdir = os.path.dirname(dst)
|
||||
if debug:
|
||||
LOG.dbg(f'mkdir \"{dstdir}\"',
|
||||
|
||||
Reference in New Issue
Block a user