Sets the `modified:` metadata from `date:` if the user asked us
to use the filesystem for determining timestamps.
This commit is contained in:
(GalaxyMaster) 2020-05-03 22:37:47 +10:00
commit b1b0d0b0ab

View file

@ -685,6 +685,7 @@ def path_metadata(full_path, source_path, settings=None):
if settings.get('DEFAULT_DATE', None) == 'fs':
metadata['date'] = datetime.datetime.fromtimestamp(
os.stat(full_path).st_mtime)
metadata['modified'] = metadata['date']
# Apply EXTRA_PATH_METADATA for the source path and the paths of any
# parent directories. Sorting EPM first ensures that the most specific