summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-03-31 06:23:33 +0200
committerhut <hut@lavabit.com>2010-03-31 06:23:33 +0200
commit2b6374131b0b9a4bbadc377c256815ca2e2d7f89 (patch)
treec805182c54b99d2123901f41efad313eb961ae6b
parenta99d50191fd37ce2aeb979f2026cdd74ccb5d4d9 (diff)
downloadranger-2b6374131b0b9a4bbadc377c256815ca2e2d7f89.tar.gz
fsobject.directory: don't load unaccessible directories!
-rw-r--r--ranger/fsobject/directory.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py
index 8f9dd1cf..79e32bff 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -241,6 +241,10 @@ class Directory(FileSystemObject, Accumulator, SettingsAware):
 		if not self.loading:
 			self.load_once()
 
+			if not self.accessible:
+				self.content_loaded = True
+				return
+
 			if schedule is None:
 				schedule = True   # was: self.size > 30