I know that this is not a solution, but maybe this can help to some of you.
I found a script to set the modified date using the EXIF data from videos and 
pics.
http://unix.stackexchange.com/questions/89264/change-created-date-from-exif-data

I made some changes to the script (the original one didn't work for me).

First install this package: libimage-exiftool-perl
sudo apt install libimage-exiftool-perl

Then create a script with this code (don't forget to set executable
permissions):

#!/bin/sh
for i in /path/to/folder/with/pics/*; do
    SPEC=`exiftool -t -S -d "%Y-%m-%d %H:%M:%S" -CreateDate "$i"`
    echo $SPEC
    echo "$i:$DATE"
    touch -d "$SPEC" "$i"
done

This will change all the modified dates from all files on
/path/to/folder/with/pics/ with the one on the EXIF metadata
information.

This is not a workaround, thi is just a fix for some kind of files.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gvfs in Ubuntu.
https://bugs.launchpad.net/bugs/1175947

Title:
  gvfs-copy --preserve doesn't work with MTP devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1175947/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to