summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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()