about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
Diffstat (limited to 'ranger')
-rw-r--r--ranger/fsobject/fsobject.py2
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