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

Re: Custom Copy doesn't preserve timestamps across junctions

Post by Marco »

That's strange...
Anyway I keep my fingers crossed
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 »

Nada, files still preserve the modified date only when moved
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: 67282
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 »

Can you describe exactly what you do? Which kind of files, from where, to where, how.

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

Re: Custom Copy doesn't preserve timestamps across junctions

Post by Marco »

admin wrote:Can you describe exactly what you do? Which kind of files, from where, to where, how.
Steps on a fresh 13.40.0103 on 7x64 SP1 ITA - You need an external USB drive, formatted in NTFS: on my system it has the letter Z

0. Start XY as admin
1. Switch to vertical pane layout
2. Tune the settings in Configuration as in the OP ( http://www.xyplorer.com/xyfc/viewtopic. ... 098#p97098 )
3. In the left pane browse into Z
4. Make a folder named "test"
5. Copy such folder with Ctrl-C
6. In the right pane you should be on the admin desktop; right click > Paste Special > Paste as Junction(s) and hit OK (the final name will be "Junction to test", that's fine)
7. Now, still on the Desktop, make two text files by Ctrl-Shift-N
8. Show IP by F12
9. Right click on the column header in the List and choose "Show Milliseconds" (to better see any timestamp change)
10. Now give those two text files an easily recognizable timestamp, like "08/12/2013 12:34:56.0123456", for each field (Created, Accessed, Modified) [I do it manually from the IP copypasting such value on each field, but I guess timestamp() would yield the same behaviour]
11. Lasso select those two text files
12. DnD them onto "Junction to test"
13. Now go to the left pane and open "test"
14. Enjoy the new timestamps! Modified is still the same, but the other two are changed (more precisely, to the time the DnD was performed)

(Optional) 15. If you now select those two text files in "Z:/test/" and DnD them on the Desktop in the right pane, you'll see that they retain the timestamp, so the presence of the junction is somewhere troublesome
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: 67282
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 »

Confirmed! Cu later, got a bug to hunt... :twisted:

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

Re: Custom Copy doesn't preserve timestamps across junctions

Post by Marco »

Yeah!!
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 »

Hahaha awesome! Now that's a much thorough steps to repeat the problem.

Just to let you know, I just downloaded the new version and it apparently solved the problem to the steps that I posted that I thought was the same with Marco. Weird but we're getting somewhere. Yes!

admin
Site Admin
Posts: 67282
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 »

Got it! Fixed! 8) :cup:

BTW, this also fixes the issue mentioned here: http://www.xyplorer.com/xyfc/viewtopic.php?f=2&t=9266

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

Re: Custom Copy doesn't preserve timestamps across junctions

Post by Marco »

:cup: :om:
You can't imagine how much this bugfix streamlines my workflow. Before I always had to do Backup to preserve timestamps, and thus ended with having to delete the source files. Now no more 8)
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: 67282
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 »

My pleasure. :D

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

Re: Custom Copy doesn't preserve timestamps across junctions

Post by Enternal »

Awesome! Thank you Don! :biggrin:

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

Re: Custom Copy doesn't preserve timestamps across junctions

Post by Marco »

Don, I moved some files and looks like there's a regression... Is it even possible? :shock:
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: 67282
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 »

Marco wrote:Don, I moved some files and looks like there's a regression... Is it even possible? :shock:
You mean this problem (http://www.xyplorer.com/xyfc/viewtopic. ... 293#p97293) is back? I did not change anything... :?

PS: Maybe you did not update XYcopy.exe?

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

Re: Custom Copy doesn't preserve timestamps across junctions

Post by Marco »

Sorry Don, I did some more tests and those steps ( http://www.xyplorer.com/xyfc/viewtopic. ... 293#p97293 ) work fine now.

However yesterday I was working on another tree structure with junctions pointing to other junctions and the problem showed again. Maybe the recent code assumes there's always only one junction? Maybe the code you wrote back in 10.90.0013 & 10.90.0014 (#ResolveJunctionsAll) could take care of it for good?
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: 67282
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 »

ResolveJunctionsAll is a very radical procedure that is currently only used by SC property. It works well but I hesitate a bit to use it in a central workhorse function like copy files. This would need deeper testing for which I have no time now.

The currently used function resolves nested junctions just fine, and the timestamps are correctly preserved through nested junctions, just tested it.

Are you having these issue with your own junctions, or with those Vista and Co junctions that Microsoft created to make the file system a mess?

Post Reply