diff options
author | hut <hut@lavabit.com> | 2010-11-01 17:17:50 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-11-22 02:33:26 +0100 |
commit | 6a7c1b84604cb378b6e82ed616776db0a89f5dcb (patch) | |
tree | 2e031d4fb6ad0e3e9644fcd6001af8cf9b643cfc /ranger | |
parent | 72c70a2df45b957fee8c755e8bc953e4126dd2fb (diff) | |
download | ranger-6a7c1b84604cb378b6e82ed616776db0a89f5dcb.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 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): |