summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-11-01 17:17:50 +0100
committerhut <hut@lavabit.com>2010-11-22 02:33:26 +0100
commit6a7c1b84604cb378b6e82ed616776db0a89f5dcb (patch)
tree2e031d4fb6ad0e3e9644fcd6001af8cf9b643cfc
parent72c70a2df45b957fee8c755e8bc953e4126dd2fb (diff)
downloadranger-6a7c1b84604cb378b6e82ed616776db0a89f5dcb.tar.gz
fsobject.directory: Fixed sorting by type
-rw-r--r--ranger/fsobject/directory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py
index 9bdb4caa..dcb4bf2c 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -78,7 +78,7 @@ class Directory(FileSystemObject, Accumulator, SettingsAware):
 		'basename': sort_by_basename,
 		'size': lambda path: -path.size,
 		'mtime': lambda path: -(path.stat and path.stat.st_mtime or 1),
-		'type': lambda path: path.mimetype,
+		'type': lambda path: path.mimetype or '',
 	}
 
 	def __init__(self, path, **kw):