summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-24 12:27:33 +0100
committerhut <hut@lavabit.com>2009-12-24 12:27:33 +0100
commitf13e7310ef7b9fa91f219c91e03f46573d42d2ed (patch)
tree5b6c5046eb26e4ca128d255db77f474b110a4992 /ranger
parenta396b3a0a77fb13834c3ed2fe7bd3838a73c5c00 (diff)
downloadranger-f13e7310ef7b9fa91f219c91e03f46573d42d2ed.tar.gz
minor fix
Diffstat (limited to 'ranger')
-rw-r--r--ranger/fsobject/directory.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py
index d7583025..66d99464 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -124,7 +124,10 @@ class Directory(SuperClass, SettingsAware):
 			files = []
 			for name in self.filenames:
 				if isdir(name):
-					item = self.fm.env.get_directory(name)
+					try:
+						item = self.fm.env.get_directory(name)
+					except:
+						item = Directory(name)
 				else:
 					item = File(name)
 				item.load_if_outdated()