From 27bfdd492f8abea2ed73e7dc877e54e9c0845b87 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 10 Oct 2011 23:40:34 +0200 Subject: fsobject.directory: use BAD_INFO --- ranger/fsobject/directory.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1-2-gfad0