Commit f4896c98 by btimby

Handle modified_time (not created_time). Can add other attributes in the future,…

Handle modified_time (not created_time). Can add other attributes in the future, but python-libarchive does not currently return them.
parent 0b9877a0
......@@ -178,7 +178,7 @@ class ArchiveFS(FS):
if attr.startswith('_'):
continue
elif attr == 'mtime':
info['created_time'] = datetime.datetime.fromtimestamp(entry.mtime)
info['modified_time'] = datetime.datetime.fromtimestamp(entry.mtime)
elif attr == 'mode':
info['st_mode'] = entry.mode
else:
......
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