Page 2 of 3

Re: Custom Copy doesn't preserve timestamps across junctions

Posted: 07 Dec 2013 12:25
by Marco
That's strange...
Anyway I keep my fingers crossed

Re: Custom Copy doesn't preserve timestamps across junctions

Posted: 07 Dec 2013 13:55
by Marco
Nada, files still preserve the modified date only when moved

Re: Custom Copy doesn't preserve timestamps across junctions

Posted: 07 Dec 2013 14:43
by admin
Can you describe exactly what you do? Which kind of files, from where, to where, how.

Re: Custom Copy doesn't preserve timestamps across junctions

Posted: 08 Dec 2013 13:05
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

Re: Custom Copy doesn't preserve timestamps across junctions

Posted: 08 Dec 2013 13:24
by admin
Confirmed! Cu later, got a bug to hunt... :twisted:

Re: Custom Copy doesn't preserve timestamps across junctions

Posted: 08 Dec 2013 13:35
by Marco
Yeah!!

Re: Custom Copy doesn't preserve timestamps across junctions

Posted: 08 Dec 2013 13:37
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!

Re: Custom Copy doesn't preserve timestamps across junctions

Posted: 08 Dec 2013 13:52
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

Re: Custom Copy doesn't preserve timestamps across junctions

Posted: 08 Dec 2013 14:13
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)

Re: Custom Copy doesn't preserve timestamps across junctions

Posted: 08 Dec 2013 14:19
by admin
My pleasure. :D

Re: Custom Copy doesn't preserve timestamps across junctions

Posted: 09 Dec 2013 20:37
by Enternal
Awesome! Thank you Don! :biggrin:

Re: Custom Copy doesn't preserve timestamps across junctions

Posted: 09 Dec 2013 21:06
by Marco
Don, I moved some files and looks like there's a regression... Is it even possible? :shock:

Re: Custom Copy doesn't preserve timestamps across junctions

Posted: 10 Dec 2013 09:17
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?

Re: Custom Copy doesn't preserve timestamps across junctions

Posted: 10 Dec 2013 12:33
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?

Re: Custom Copy doesn't preserve timestamps across junctions

Posted: 10 Dec 2013 17:30
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?