Page 1 of 3
Custom Copy doesn't preserve timestamps across junctions
Posted: 04 Dec 2013 18:07
by Marco
As the title says. Here's a way to reproduce the bug. It may be related to this
http://www.xyplorer.com/xyfc/viewtopic. ... ustom+copy , but I'm not sure.
Ingredients: a junction pointing to an external drive, 2+ files with easily recognizable timestamps.
Steps (starting with fresh 13.40.0007):
1. In Configuration | File Operations , set these options (I marked in yellow what I changed from default)
1.PNG
2.PNG
2. Drag and drop said files onto the junction
3. The files will not mantain the Accessed timestamp (it becomes the time at which the file op was performed), even if they should. Actually, only the first file mantains all the timestamps as expected.
Re: Custom Copy doesn't preserve timestamps across junctions
Posted: 05 Dec 2013 18:23
by Marco
Just want to add that Backup mantains the three timestamps.
Re: Custom Copy doesn't preserve timestamps across junctions
Posted: 06 Dec 2013 08:22
by admin
Before I do any testing: Are you really sure? Because: Custom Copy and Backup use essentially the same code, it's impossible that they differ in this regard. Or maybe another question: Are you sure that Custom Copy was used in your case? (or maybe shell copy?)
Re: Custom Copy doesn't preserve timestamps across junctions
Posted: 06 Dec 2013 10:32
by Marco
Absolutely sure. The Custom Copy window briefly pops up during the process. I did another attempt enabling also "Queue file operations" and the results are the same: timestamps not preserved.
I'm as baffled as you

Re: Custom Copy doesn't preserve timestamps across junctions
Posted: 06 Dec 2013 15:46
by admin
Well, I tested it under XP and Win7/64. It works fine! All 3 dates preserved. That was a copy on the same hard drive.
Also tested it under XP to an external drive: Again all fine.
I cannot test Win7/64 with external drives -- none of them in my virtual box and failed to add them.

Re: Custom Copy doesn't preserve timestamps across junctions
Posted: 06 Dec 2013 17:02
by Marco
admin wrote:I cannot test Win7/64 with external drives -- none of them in my virtual box and failed to add them.

My system
I hope someone on 7x64 can repro
Re: Custom Copy doesn't preserve timestamps across junctions
Posted: 06 Dec 2013 18:55
by Enternal
Yes I was able to reproduce this as well. Step by step on Windows 7 x64.
1. Make a new Folder on the Desktop
2. Copy that Folder
3. Go to <xydata>
4. Paste Special as Junction(s)
5. Set up the Custom Copy as Marco has setup
6. Simply Drag any Folder in the <xydata> folder into the junction.
You will then see that the Accessed date changed even though custom copy is on. This only happens with Folders. Files still maintain date as expected. Also note that this caused only with Drag and Drop. Simple Copy and then Paste always work.
Re: Custom Copy doesn't preserve timestamps across junctions
Posted: 06 Dec 2013 20:32
by admin
So we are talking about the Accessed date of folders! I don't think this has ever been possible. Windows too easily changes this date if you just think about looking at a folder. At least here (XP) I cannot get this date preserved regardless of junction or not, move or copy.
Re: Custom Copy doesn't preserve timestamps across junctions
Posted: 06 Dec 2013 21:12
by Enternal
admin wrote:So we are talking about the Accessed date of folders! I don't think this has ever been possible. Windows too easily changes this date if you just think about looking at a folder. At least here (XP) I cannot get this date preserved regardless of junction or not, move or copy.
It's such an odd issue then. The date is preserved in all other cases but Drag n Drop for Custom Copy. But can't XYCopy force the date on it? It's understandable if it's drag and drop using Windows own Explorer but with Custom Copy on, shouldn't it preserve it?
Re: Custom Copy doesn't preserve timestamps across junctions
Posted: 07 Dec 2013 09:45
by admin
Enternal wrote:admin wrote:So we are talking about the Accessed date of folders! I don't think this has ever been possible. Windows too easily changes this date if you just think about looking at a folder. At least here (XP) I cannot get this date preserved regardless of junction or not, move or copy.
It's such an odd issue then. The date is preserved in all other cases but Drag n Drop for Custom Copy. But can't XYCopy force the date on it? It's understandable if it's drag and drop using Windows own Explorer but with Custom Copy on, shouldn't it preserve it?
Not here. Which copy or move operation does preserves the accessed date of a folder that contains files? I know none. Only retrieving the contents of the source folder (there is no way around that obviously) will change the accessed date of that folder.
Re: Custom Copy doesn't preserve timestamps across junctions
Posted: 07 Dec 2013 10:23
by Marco
Weird, just tried Enternal steps and folder timestamps are preserved
I don't know what to think...
Re: Custom Copy doesn't preserve timestamps across junctions
Posted: 07 Dec 2013 10:30
by admin
Hm, then it must be a Vista thing. I'll check that later...
Re: Custom Copy doesn't preserve timestamps across junctions
Posted: 07 Dec 2013 10:41
by admin
OK, indeed in Vista and later a folder's accessed date is NOT changed when the folder is browsed. Good, then the issue here should be fixed in the next version (for Vista and later).
Re: Custom Copy doesn't preserve timestamps across junctions
Posted: 07 Dec 2013 10:47
by Marco
Awesome!
Just remember that my first post was about files tho.
Re: Custom Copy doesn't preserve timestamps across junctions
Posted: 07 Dec 2013 11:30
by admin
Tried it in Win7 and everything works fine. The only problem I have: It always worked fine here under Win7. I cannot replicate your problem.
Nevertheless I changed something to make it work in XP (which failed). Maybe this something makes it work for you in your Win7.