FarManager icon indicating copy to clipboard operation
FarManager copied to clipboard

Directories timestamps are not preserved on copy/move when they already exist

Open birdie-github opened this issue 4 years ago • 3 comments

Far Manager version

3.0.5888.0

OS version

10

Here's a simple scenario.

Say you're copying/moving a directory tree to a new location where some directories already exist.

In this case the "Preserve All Timestamps" option will not work for the already existing directories at the destination whose timestamps must be overwritten with the timestamps of the directories you're moving/copying.

     \file1     \file4
    a\file2 -> a\file5
     \file3     \file6

(source)    -> destination

The source directory A timestamps: TIME_LWRITE TIME_CREATION TIME_LACCESS TIME_CHANGE After copying or moving the destination A directory timestamps will become NOW NOW NOW NOW and they must become TIME_LWRITE TIME_CREATION TIME_LACCESS TIME_CHANGE.

Please fix.

birdie-github avatar Oct 23 '21 18:10 birdie-github

Why do you think it's a bug? If such directory it's already there then it's not "copied" and there's nothing to preserve.

alabuzhev avatar Oct 27 '21 21:10 alabuzhev

Why do you think it's a bug? If such directory it's already there then it's not "copied" and there's nothing to preserve.

Other utilities, including cp, tar, rar, 7-zip and Midnight Commander follow the behavior which I am looking for.

birdie-github avatar Oct 28 '21 05:10 birdie-github

Argument N2: when existing files are overwritten when copying/moving them, their timestamps are updated to match to the source. It's hard to understand why directories are exempt from it.

birdie-github avatar Nov 02 '21 11:11 birdie-github