Commit 6aac4de5 by willmcgugan

Added created time to Zip file listings

parent 9284f4e2
......@@ -181,7 +181,9 @@ class ZipFS(FS):
zinfo = dict((attrib, getattr(zi, attrib)) for attrib in dir(zi) if not attrib.startswith('_'))
except KeyError:
zinfo = {'file_size':0}
info = {'size' : zinfo['file_size']}
info = {'size' : zinfo['file_size'] }
if 'date_time' in zinfo:
info['created_time'] = datetime.datetime(*zinfo['date_time'])
info.update(zinfo)
return info
finally:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment