Thunar assigns date stamp of deleted file when previous (e.g. original) copy of file copied or moved into that directory

Asked by Kim Tucker

While changing directory structures and trying to reduce the number of duplicate files on an external usb drive - dragging, dropping and deleting files manually with Thunar - I noticed the above (title/one line summary) in the following situation:

(e.g.) I have 2 identical files 'filename.ext' in two folders:
'folder-to-delete/' contains the original file with the original date stamp,
'folder-to-keep/' has the same file but a different (later) date stamp as it was copied previously (with this problem).

If I delete the file 'folder-to-keep/filename.ext' and then copy or move (drag/drop) the file 'folder-to-delete/filename.ext' into 'folder-to-keep/', the file now in 'folder-to-keep/' acquires a new date stamp (matching the deleted file).

However, if I drag or drop the file into an empty folder which has not previously contained a version of it, the original date stamp is retained (as I require/expect).

If I first move (by drag and drop) the unwanted file 'folder-to-keep/filename.ext' elsewhere, and then copy/move 'folder-to-delete/filename.ext' into 'folder-to-keep/', the original date stamp is retained (as I require/expect).

The problem is independent of whether I empty trash after deleting.

So, is this a bug?
I would expect moving or copying a file to some other folder should retain its date of creation and modification.
Overwriting/replacing the unwanted file with the wanted one should retain date stamp of the wanted.
In the scenario above the new date stamp is incorrect, so I expect this is a bug.

$ lsb_release -rd
Description: Ubuntu 13.10
Release: 13.10
$ uname -a
... 3.11.0-13-generic #20-Ubuntu SMP Wed Oct 23 07:38:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
In a Xubuntu session.

(also asked at askubuntu.com)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Kim Tucker
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

DO other file managers display the same behavior?

Revision history for this message
Kim Tucker (ktucker) said :
#2

A quick test with Nautilus also in a Xubuntu session on the same system: no. Nautilus works as I would expect: copying, moving and replacing all retain the date stamp whether the unwanted file was previously deleted or moved or not (i.e. replaced).

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Ok then run:

ubuntu-bug thunar

And report the bug :-)

Revision history for this message
Kim Tucker (ktucker) said :
#4

Done. Marked this as 'Problem Solved' so further comment can be collected at

:https://bugs.launchpad.net/ubuntu/+source/thunar/+bug/1252655

Thanks