Skip to content

Commit

Permalink
Update Plano
Browse files Browse the repository at this point in the history
  • Loading branch information
ssorj committed Feb 25, 2024
1 parent 705acfb commit ad9ffe6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions external/plano/src/plano/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,13 +535,13 @@ def copy(from_path, to_path, symlinks=True, inside=True, quiet=False):
else:
make_parent_dir(to_path, quiet=True)

if is_dir(from_path):
if is_link(from_path) and symlinks:
make_link(to_path, read_link(from_path), quiet=True)
elif is_dir(from_path):
for name in list_dir(from_path):
copy(join(from_path, name), join(to_path, name), symlinks=symlinks, inside=False, quiet=True)

_shutil.copystat(from_path, to_path)
elif is_link(from_path) and symlinks:
make_link(to_path, read_link(from_path), quiet=True)
else:
_shutil.copy2(from_path, to_path)

Expand Down

0 comments on commit ad9ffe6

Please sign in to comment.