Linux Lite Forums
Is there a file manager that will preserve the original date and time ..... - Printable Version

+- Linux Lite Forums (https://www.linuxliteos.com/forums)
+-- Forum: Software - Support (https://www.linuxliteos.com/forums/forumdisplay.php?fid=5)
+--- Forum: Other (https://www.linuxliteos.com/forums/forumdisplay.php?fid=20)
+--- Thread: Is there a file manager that will preserve the original date and time ..... (/showthread.php?tid=2439)



Is there a file manager that will preserve the original date and time ..... - greenisland - 11-29-2015

I am trying to use a file manager to get files off my android phone and copy them to a directory in my linuxlite PC.  The problem is that when using Thunar (for example) to copy a photo from the phone to the computer, the file ends up with a new creation date for the date/time it was copied, rather than the date it was created, and this makes sorting by creation date impossible on Linux Lite.

This problem is fully described here in regard to Nautilus http://ubuntuforums.org/showthread.php?t=2187432&page=1  and it is exactly what I am experiencing in Thunar and LL. 

I have used grsync to transfer files and that works to preserve the date, but I really want to use a file manager as I do this all the time. 

Does anyone know of a file manager that explicitly has the "preserve date stamp" option that grysnc offers?

thanks

I see THIS from that thread, but that doesn't help me now....  Any ideas for the present would be appreciated. 

UPDATE 2 October 2015: GREAT NEWS! THIS BUG HAS FINALLY BEEN FIXED in time for UBUNTU 15.10.
The gvfs package has been updated and contains a fix! Timestamps are now preserved.
See: https://bugs.launchpad.net/ubuntu/+s...s/+bug/1175947


Re: Is there a file manager that will preserve the original date and time ..... - technomancer - 11-29-2015

I have researched this somewhat for you, and from what I found it is a Andriod (fuze/fat32) and Ubuntu issue since 2008. The details on why are found by googling- "thunar preserve date stamp".
The best solution I found is to go to Terminal and type in-  cp --preserve=timestamp /path/to/your/photos/* /path/to/the/destination/folder
I hope that helps, it isn't a best solution but creating a script that would do it for you is most likely the best option.

Check out this thread on the issue- http://forums.linuxmint.com/viewtopic.php?f=90&t=186472


Re: Is there a file manager that will preserve the original date and time ..... - Valtam - 11-30-2015

You could try a Thunar custom action. Call it something like 'Timestamp Copy':

Name: Timestamp Copy
Description: Timestamp Copy
Command: rsync -a %F `zenity --file-selection --directory`

On the Appearance tab, tick all boxes.


Re: Is there a file manager that will preserve the original date and time ..... - greenisland - 11-30-2015

Thank you both very much for your suggestions.  This has bothered me for quite a while but I let it just hang in the back of my mind as a mystery of linux without following up to track down the problem.  At least now that I know that this really is an issue with the operating systems, rather than the way I was using Thunar, I can get past the psychological barrier.

Thanks!