diff options
author | hut <hut@lavabit.com> | 2009-11-23 22:40:30 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-11-23 22:40:30 +0100 |
commit | 6ca37350f8e6bffe78520fddfc29ca53fa562e87 (patch) | |
tree | c465e193f5d7b14521708747c9e4842a461132b6 /code/directory.py | |
parent | fe179145892d5835b33c79ab90b6ba257cf5f12d (diff) | |
download | ranger-6ca37350f8e6bffe78520fddfc29ca53fa562e87.tar.gz |
set the mtime of the directory after reading
Diffstat (limited to 'code/directory.py')
-rw-r--r-- | code/directory.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/code/directory.py b/code/directory.py index e28bf35c..d50432d2 100644 --- a/code/directory.py +++ b/code/directory.py @@ -17,6 +17,7 @@ class Directory(): import os if self.frozen: raise FrozenException() try: + self.mtime = os.path.getmtime(self.path) self.files = os.listdir(self.path) self.exists = True self.accessible = True @@ -24,6 +25,7 @@ class Directory(): self.files = None self.exists = False self.accessible = False + self.files_loaded = True def clone(self): @@ -51,4 +53,3 @@ if __name__ == '__main__': print(d.files) print(d[1]) - |