diff options
author | hut <hut@lavabit.com> | 2009-12-24 12:27:33 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-24 12:27:33 +0100 |
commit | f13e7310ef7b9fa91f219c91e03f46573d42d2ed (patch) | |
tree | 5b6c5046eb26e4ca128d255db77f474b110a4992 /ranger | |
parent | a396b3a0a77fb13834c3ed2fe7bd3838a73c5c00 (diff) | |
download | ranger-f13e7310ef7b9fa91f219c91e03f46573d42d2ed.tar.gz |
minor fix
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/fsobject/directory.py | 5 |
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() |