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)
|
||||
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}")
|
||||
else:
|
||||
dest.symlink_to(src)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user