summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-11-01 17:17:50 +0100
committerhut <hut@lavabit.com>2010-11-01 17:17:50 +0100
commit359cfb362c59e658dbffa29ee9cae6cef1065c9f (patch)
treee4437b065eb73183c7d63cb17c346d563bde30b6 /ranger
parentba72fe26af4dc8fc1580ac0ea39b831e4368c881 (diff)
downloadranger-359cfb362c59e658dbffa29ee9cae6cef1065c9f.tar.gz
fsobject.directory: Fixed sorting by type
Diffstat (limited to 'ranger')
-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 7578ad5f..5d1a89a0 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -86,7 +86,7 @@ class Directory(FileSystemObject, Accumulator, Loadable, SettingsAware):
 		'natural': sort_naturally,
 		'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):