diff options
author | hut <hut@lepus.uberspace.de> | 2015-02-07 14:05:56 +0100 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2015-02-07 14:05:56 +0100 |
commit | 38d7f50ca759ba81a75ffee9132693e5d9e1340f (patch) | |
tree | 1ba998052bcf06dde900ffeba5c5001fc018c779 | |
parent | c8e0e81aed76b8a1441c2fd18f7e24dad23d71fd (diff) | |
download | ranger-38d7f50ca759ba81a75ffee9132693e5d9e1340f.tar.gz |
core.loader: fix copy&pasting directory links
-rw-r--r-- | ranger/core/loader.py | 2 |
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, |