diff options
author | hut <hut@lavabit.com> | 2010-03-12 15:55:41 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-03-12 15:55:41 +0100 |
commit | 7c60609d0484b3436b90e6a78513ded737e6d33a (patch) | |
tree | 8e9a812dd8e42617799137d90cd21a7c481a830a | |
parent | cfcfd885dc15547d68340da024b571c8eddccc7c (diff) | |
download | ranger-7c60609d0484b3436b90e6a78513ded737e6d33a.tar.gz |
fsobject: fixed crash on files which exist but can't be stated
-rw-r--r-- | ranger/fsobject/fsobject.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/fsobject/fsobject.py b/ranger/fsobject/fsobject.py index 0e67cba6..80ce1e48 100644 --- a/ranger/fsobject/fsobject.py +++ b/ranger/fsobject/fsobject.py @@ -152,7 +152,7 @@ class FileSystemObject(MimeTypeAware, FileManagerAware): self.islink = stat.S_ISLNK(self.stat.st_mode) self.accessible = True - if os.access(self.path, os.F_OK): + if self.accessible and os.access(self.path, os.F_OK): self.exists = True self.accessible = True |