KonradIT / mmt

Media Management Tool - make importing videos/photos from GoPro and other action cameras/drones a little bit more bearable.
http://mmt.camera
Apache License 2.0
109 stars 12 forks source link

apply the mtime given by the gopro to the written files #126

Closed klaernie closed 2 months ago

klaernie commented 9 months ago

set the mtime of downloaded files

The gopro already tells us what the mtime of the files should be, so we should set the mtime of our newly mades copies to the respective timestamp.

This allows applications like Google Photos to have the actual timestamp available, when the file was written, instead of reading the timestamp when the files were downloaded from the camera.

Please be aware that this is the first time I'm ever handling golang code, so if any of this is not acceptable or not in proper style please tell me - I'm currently in the "I know barely enough to be dangerous" phase. ;)

Type:

Camera:

Component:

Checklist before approval:

klaernie commented 9 months ago

FYI: in my branch the linter complains, but the errors are unrelated to the changes introduced, and are identical to the ones currently present in the development branch.

klaernie commented 9 months ago

oh, spoke too soon, seems my use of the .tmp string crossed a threshold - or at least that's what I understand from it