mirror of https://github.com/fmartingr/porg.git
Printing out files without a reliable datetime source
This commit is contained in:
parent
5dde6db342
commit
3319f433f2
5
porg.py
5
porg.py
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue