From 6a7c1b84604cb378b6e82ed616776db0a89f5dcb Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 1 Nov 2010 17:17:50 +0100 Subject: fsobject.directory: Fixed sorting by type --- ranger/fsobject/directory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit 1.4.1-2-gfad0