diff options
author | hut <hut@lavabit.com> | 2010-01-07 13:18:29 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-07 13:18:29 +0100 |
commit | bba8d293c32050b79cfc2b0ac2807f324ef44800 (patch) | |
tree | 6884eeac33bdef7d51afc0534a8345b05a8b5cbf | |
parent | 5177b02b4934ea6e04053f5b5d51cac8ecec6f58 (diff) | |
download | ranger-bba8d293c32050b79cfc2b0ac2807f324ef44800.tar.gz |
directory: fixed non reloading symlinked directories
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | ranger/fsobject/directory.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/TODO b/TODO index 7b124a93..15a0f652 100644 --- a/TODO +++ b/TODO @@ -32,7 +32,7 @@ Bugs (X) #18 10/01/01 fix notify widget (by adding a LogView?) (X) #19 10/01/01 resizing after pressing g (X) #23 10/01/04 stop dir loading with ^C -> wont load anymore - ( ) #25 10/01/06 directories sometimes dont reload correctly + (X) #25 10/01/06 directories sometimes dont reload correctly ( ) #26 10/01/06 :delete on symlinks of directories fails ( ) #31 10/01/06 ^C breaks cd-after-exit diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py index 40e8caa9..817f5603 100644 --- a/ranger/fsobject/directory.py +++ b/ranger/fsobject/directory.py @@ -139,7 +139,7 @@ class Directory(FileSystemObject, Accumulator, SettingsAware): filenames.append(join(self.path, fname)) yield - self.load_content_mtime = os.lstat(self.path).st_mtime + self.load_content_mtime = os.stat(self.path).st_mtime marked_paths = set(map( \ lambda obj: obj.path, self.marked_items)) @@ -335,7 +335,7 @@ class Directory(FileSystemObject, Accumulator, SettingsAware): return True try: - real_mtime = os.lstat(self.path).st_mtime + real_mtime = os.stat(self.path).st_mtime except OSError: real_mtime = None if self.stat: |