about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2015-02-07 14:05:56 +0100
committerhut <hut@lepus.uberspace.de>2015-02-07 14:05:56 +0100
commit38d7f50ca759ba81a75ffee9132693e5d9e1340f (patch)
tree1ba998052bcf06dde900ffeba5c5001fc018c779
parentc8e0e81aed76b8a1441c2fd18f7e24dad23d71fd (diff)
downloadranger-38d7f50ca759ba81a75ffee9132693e5d9e1340f.tar.gz
core.loader: fix copy&pasting directory links
-rw-r--r--ranger/core/loader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/loader.py b/ranger/core/loader.py
index 3ba5b128..85e2cbb1 100644
--- a/ranger/core/loader.py
+++ b/ranger/core/loader.py
@@ -96,7 +96,7 @@ class CopyLoader(Loadable, FileManagerAware):
                 else:
                     self.description = "copying files from: " + self.one_file.dirname
                 for f in self.copy_buffer:
-                    if os.path.isdir(f.path):
+                    if os.path.isdir(f.path) and not os.path.islink(f.path):
                         for _ in shutil_g.copytree(src=f.path,
                                 dst=os.path.join(self.original_path, f.basename),
                                 symlinks=True,