diff options
author | hut <hut@lavabit.com> | 2010-03-28 21:59:30 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-03-28 21:59:30 +0200 |
commit | 6ae68da4b0c341cbd49f05bb02b979bec4377d20 (patch) | |
tree | 98f5b046c5baa21ff2ff19d992014e039f853b0f | |
parent | 34c131ef561ffb22586e2094fc0c478a44f24ac6 (diff) | |
download | ranger-6ae68da4b0c341cbd49f05bb02b979bec4377d20.tar.gz |
core.environment: don't GC directories which you're in. lol
-rw-r--r-- | ranger/core/environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/environment.py b/ranger/core/environment.py index 74b4f718..8799229c 100644 --- a/ranger/core/environment.py +++ b/ranger/core/environment.py @@ -106,7 +106,7 @@ class Environment(SettingsAware): for key in tuple(self.directories.keys()): value = self.directories[key] if isinstance(value, FileSystemObject): - if value.is_older_than(1200): + if value.is_older_than(1200) and not value in self.pathway: del self.directories[key] def get_selection(self): |