diff options
author | hut <hut@lavabit.com> | 2010-11-01 17:17:50 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-11-01 17:17:50 +0100 |
commit | 359cfb362c59e658dbffa29ee9cae6cef1065c9f (patch) | |
tree | e4437b065eb73183c7d63cb17c346d563bde30b6 /ranger | |
parent | ba72fe26af4dc8fc1580ac0ea39b831e4368c881 (diff) | |
download | ranger-359cfb362c59e658dbffa29ee9cae6cef1065c9f.tar.gz |
fsobject.directory: Fixed sorting by type
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/fsobject/directory.py | 2 |
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): |