From ad9ffe6edc908b453767f827fc826f6d0b67f8e3 Mon Sep 17 00:00:00 2001 From: Justin Ross Date: Sun, 25 Feb 2024 06:16:51 -0500 Subject: [PATCH] Update Plano --- external/plano/src/plano/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/external/plano/src/plano/main.py b/external/plano/src/plano/main.py index eaed213..9a99fb1 100644 --- a/external/plano/src/plano/main.py +++ b/external/plano/src/plano/main.py @@ -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)