extract_metadata: store file "modified" time as unix time

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2020-10-21 17:53:45 -04:00
parent f2fb8d33d4
commit dfb1e19948
1 changed files with 1 additions and 1 deletions

View File

@ -490,7 +490,7 @@ def extract_metadata(file_path, log):
header_data = footer_data = slicer = None
size = os.path.getsize(file_path)
metadata['size'] = size
metadata['modified'] = time.ctime(os.path.getmtime(file_path))
metadata['modified'] = os.path.getmtime(file_path)
with open(file_path, 'r') as f:
# read the default size, which should be enough to
# identify the slicer