1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-16 02:01:11 +00:00
This commit is contained in:
deadc0de6
2023-11-13 23:28:13 +01:00
parent da25bfd0b9
commit 2712eb5368
2 changed files with 10 additions and 5 deletions

View File

@@ -356,12 +356,17 @@ def copytree_with_ign(src, dst, ignore_func=None, debug=False):
LOG.dbg(f'mkdir \"{dstf}\"',
force=True)
os.makedirs(dstf, exist_ok=True)
copied_count += copytree_with_ign(srcf, dstf, ignore_func=ignore_func)
copied_count += copytree_with_ign(srcf,
dstf,
ignore_func=ignore_func)
else:
if debug:
LOG.dbg(f'copytree, copy file \"{src}\" to \"{dst}\"',
force=True)
copied_count += _cp(srcf, dstf, ignore_func=ignore_func, debug=debug)
copied_count += _cp(srcf,
dstf,
ignore_func=ignore_func,
debug=debug)
return copied_count