summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-10 23:40:34 +0200
committerhut <hut@lavabit.com>2011-10-10 23:40:34 +0200
commit27bfdd492f8abea2ed73e7dc877e54e9c0845b87 (patch)
tree79c14f9a08ab03df40f7f4370dc90aba9a72b050
parent5fd44f5ad9093dee5f62d37c0e89d95e8da8d64f (diff)
downloadranger-27bfdd492f8abea2ed73e7dc877e54e9c0845b87.tar.gz
fsobject.directory: use BAD_INFO
-rw-r--r--ranger/fsobject/directory.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py
index bd652655..9d07dbef 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -18,6 +18,7 @@ from os import stat as os_stat, lstat as os_lstat
 from collections import deque
 from time import time
 
+from ranger.fsobject import BAD_INFO
 from ranger.core.loader import Loadable
 from ranger.ext.mount_path import mount_path
 from ranger.fsobject import File, FileSystemObject
@@ -330,7 +331,7 @@ class Directory(FileSystemObject, Accumulator, Loadable, SettingsAware):
 		try:
 			size = len(os.listdir(self.path))  # bite me
 		except OSError:
-			self.infostring = '?'
+			self.infostring = BAD_INFO
 			self.accessible = False
 			self.runnable = False
 			return 0