Custom Copy doesn't preserve timestamps across junctions

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Custom Copy doesn't preserve timestamps across junctions

Post 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.
To see the attached files, you need to log into the forum.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Custom Copy doesn't preserve timestamps across junctions

Post by Marco »

Just want to add that Backup mantains the three timestamps.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 67299
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Custom Copy doesn't preserve timestamps across junctions

Post 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?)

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Custom Copy doesn't preserve timestamps across junctions

Post 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 :?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 67299
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Custom Copy doesn't preserve timestamps across junctions

Post 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. :blackstorm:

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Custom Copy doesn't preserve timestamps across junctions

Post by Marco »

admin wrote:I cannot test Win7/64 with external drives -- none of them in my virtual box and failed to add them. :blackstorm:
My system :(
I hope someone on 7x64 can repro
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: Custom Copy doesn't preserve timestamps across junctions

Post 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.

admin
Site Admin
Posts: 67299
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Custom Copy doesn't preserve timestamps across junctions

Post 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.

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: Custom Copy doesn't preserve timestamps across junctions

Post 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?

admin
Site Admin
Posts: 67299
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Custom Copy doesn't preserve timestamps across junctions

Post 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.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Custom Copy doesn't preserve timestamps across junctions

Post by Marco »

Weird, just tried Enternal steps and folder timestamps are preserved :shock:
I don't know what to think...
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 67299
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Custom Copy doesn't preserve timestamps across junctions

Post by admin »

Hm, then it must be a Vista thing. I'll check that later...

admin
Site Admin
Posts: 67299
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Custom Copy doesn't preserve timestamps across junctions

Post 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).

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Custom Copy doesn't preserve timestamps across junctions

Post by Marco »

Awesome!
Just remember that my first post was about files tho.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 67299
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Custom Copy doesn't preserve timestamps across junctions

Post 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.

Post Reply