|
@@ -496,7 +496,7 @@ def _massage_stats(request, stats):
|
|
|
'path': normalized,
|
|
'path': normalized,
|
|
|
'name': stats['name'],
|
|
'name': stats['name'],
|
|
|
'stats': stats.to_json_dict(),
|
|
'stats': stats.to_json_dict(),
|
|
|
- 'mtime': datetime.fromtimestamp(stats['mtime']).strftime('%B %d, %Y %I:%M %p') if stats['mtime'] is not None else '',
|
|
|
|
|
|
|
+ 'mtime': datetime.fromtimestamp(stats['mtime']).strftime('%B %d, %Y %I:%M %p') if stats['mtime'] else '',
|
|
|
'humansize': filesizeformat(stats['size']),
|
|
'humansize': filesizeformat(stats['size']),
|
|
|
'type': filetype(stats['mode']),
|
|
'type': filetype(stats['mode']),
|
|
|
'rwx': rwx(stats['mode'], stats['aclBit']),
|
|
'rwx': rwx(stats['mode'], stats['aclBit']),
|