diff options
author | hut <hut@lepus.uberspace.de> | 2015-02-06 21:08:59 +0100 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2015-02-06 22:36:07 +0100 |
commit | 1bb7f23f5474d7fa3ca535607e437d0622698de7 (patch) | |
tree | 7b2c53a4a36419636175a2f7349adcfdfe9d16fc | |
parent | 382c1438458163ea3fb1c57c853ee7af1be84a99 (diff) | |
download | ranger-1bb7f23f5474d7fa3ca535607e437d0622698de7.tar.gz |
core.loader: don't follow links when calculating size
-rw-r--r-- | ranger/core/loader.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/core/loader.py b/ranger/core/loader.py index 17d6bf09..3ba5b128 100644 --- a/ranger/core/loader.py +++ b/ranger/core/loader.py @@ -59,6 +59,8 @@ class CopyLoader(Loadable, FileManagerAware): stack = [f.path for f in self.copy_buffer] while stack: fname = stack.pop() + if os.path.islink(fname): + continue if os.path.isdir(fname): stack.extend([join(fname, item) for item in os.listdir(fname)]) else: |