fix cp dirs
This commit is contained in:
parent
3f813914d4
commit
c54db52ec0
@ -114,7 +114,10 @@ def link_environment(config, env, **kwargs):
|
|||||||
|
|
||||||
dest.parent.mkdir(parents=True, exist_ok=True)
|
dest.parent.mkdir(parents=True, exist_ok=True)
|
||||||
if options["copy"]:
|
if options["copy"]:
|
||||||
shutil.copy(src, dest)
|
if src.is_dir():
|
||||||
|
shutil.copytree(src, dest)
|
||||||
|
else:
|
||||||
|
shutil.copy(src, dest)
|
||||||
print(f"\t> Copied: {src} -> {dest}")
|
print(f"\t> Copied: {src} -> {dest}")
|
||||||
else:
|
else:
|
||||||
dest.symlink_to(src)
|
dest.symlink_to(src)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user