Skip to content

Commit ce1d5dd

Browse files
committed
added modified_time to zipfs
1 parent 29b519f commit ce1d5dd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fs/zipfs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@ def getinfo(self, path):
284284
if callable(v):
285285
zinfo[k] = v()
286286
except KeyError:
287-
zinfo = {'file_size':0}
288-
info = {'size' : zinfo['file_size']}
287+
zinfo = {'file_size': 0}
288+
info = {'size': zinfo['file_size']}
289289
if 'date_time' in zinfo:
290-
info['created_time'] = datetime.datetime(*zinfo['date_time'])
290+
info['modified_time'] = info['created_time'] = datetime.datetime(*zinfo['date_time'])
291291
info.update(zinfo)
292292
if 'FileHeader' in info:
293293
del info['FileHeader']

0 commit comments

Comments
 (0)