From 7c60609d0484b3436b90e6a78513ded737e6d33a Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 12 Mar 2010 15:55:41 +0100 Subject: fsobject: fixed crash on files which exist but can't be stated --- ranger/fsobject/fsobject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1-2-gfad0