summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2015-02-06 21:08:59 +0100
committerhut <hut@lepus.uberspace.de>2015-02-06 22:36:07 +0100
commit1bb7f23f5474d7fa3ca535607e437d0622698de7 (patch)
tree7b2c53a4a36419636175a2f7349adcfdfe9d16fc
parent382c1438458163ea3fb1c57c853ee7af1be84a99 (diff)
downloadranger-1bb7f23f5474d7fa3ca535607e437d0622698de7.tar.gz
core.loader: don't follow links when calculating size
-rw-r--r--ranger/core/loader.py2
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: