summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-05-06 03:35:17 +0200
committerhut <hut@lavabit.com>2010-05-06 03:35:17 +0200
commitf74834c23ac08b8c804e8f87d2df7efc29d7483a (patch)
tree42617b73deed307867d92da40b5f97f0f75cd749 /ranger
parentc0175f6d3cba53951ac8468003fd2c8de69bb357 (diff)
downloadranger-f74834c23ac08b8c804e8f87d2df7efc29d7483a.tar.gz
fsobject.directory: bugfix
Diffstat (limited to 'ranger')
-rw-r--r--ranger/fsobject/directory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py
index 5acf6ca7..60387e7b 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -181,8 +181,8 @@ class Directory(FileSystemObject, Accumulator, SettingsAware):
 
 				files = []
 				for name in filenames:
-					file_lstat = os.lstat(name)
 					try:
+						file_lstat = os.lstat(name)
 						if S_ISLNK(file_lstat.st_mode):
 							file_stat = os.stat(name)
 						else: