1
0
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:
deadc0de6
2023-08-09 21:41:51 +02:00
committed by deadc0de
parent 267f851445
commit a691a0c06b

View File

@@ -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}\"',