mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-12 00:44:00 +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"""
|
"""the copy function for copytree"""
|
||||||
if ignore_func and ignore_func(src):
|
if ignore_func and ignore_func(src):
|
||||||
return
|
return
|
||||||
|
if not os.path.isfile(src):
|
||||||
|
# ignore special files
|
||||||
|
return
|
||||||
dstdir = os.path.dirname(dst)
|
dstdir = os.path.dirname(dst)
|
||||||
if debug:
|
if debug:
|
||||||
LOG.dbg(f'mkdir \"{dstdir}\"',
|
LOG.dbg(f'mkdir \"{dstdir}\"',
|
||||||
|
|||||||
Reference in New Issue
Block a user