Printing out files without a reliable datetime source

This commit is contained in:
Felipe Martin 2018-09-30 00:45:39 +02:00
parent 5dde6db342
commit 3319f433f2
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
1 changed files with 5 additions and 0 deletions

View File

@ -116,6 +116,11 @@ class File:
except ValueError:
pass
print(f'---- Using stat data for {self.path}')
for key, value in self.exif.items():
if 'date' in key.lower() and 'file' not in key.lower():
print(f' - found "{key}={value}"')
# Last resort, use file creation/modification date
stat = os.stat(self.path)
try: