fix cp dirs
This commit is contained in:
@@ -114,6 +114,9 @@ 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"]:
|
||||||
|
if src.is_dir():
|
||||||
|
shutil.copytree(src, dest)
|
||||||
|
else:
|
||||||
shutil.copy(src, dest)
|
shutil.copy(src, dest)
|
||||||
print(f"\t> Copied: {src} -> {dest}")
|
print(f"\t> Copied: {src} -> {dest}")
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user