diff options
-rw-r--r-- | ranger/fsobject/fsobject.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/fsobject/fsobject.py b/ranger/fsobject/fsobject.py index c0ab6a9c..7899e5f5 100644 --- a/ranger/fsobject/fsobject.py +++ b/ranger/fsobject/fsobject.py @@ -194,7 +194,10 @@ class FileSystemObject(MimeTypeAware, FileManagerAware): if self.load_once(): return True import os - real_mtime = os.stat(self.path).st_mtime + try: + real_mtime = os.stat(self.path).st_mtime + except OSError: + return False cached_mtime = self.stat.st_mtime if real_mtime != cached_mtime: |