[TC11.03 x64] SyncIgnoreJunctions not working as expected
Moderators: Hacker, petermad, Stefan2, white
[TC11.03 x64] SyncIgnoreJunctions not working as expected
My settings:
CopyLinks=2 (also tried 0)
IgnoreLinks=7
SyncIgnoreJunctions=1
SyncRecompareAfterCopy=0
I have compared two folders (sync dirs - the left is a local folder and the right a unc path) with the following settings: "Empty dirs", "Asymetric", "Subdirs".
After the comparison finished, i noticed that a bunch of junctions i had in the left drive (at lower levels of the tree) appeared in the list as existing only on the left side and marked for copy to the right side (just them, not any files under them). Since "SyncIgnoreJunctions=1", i expected them to not appear at all in the list, right?
CopyLinks=2 (also tried 0)
IgnoreLinks=7
SyncIgnoreJunctions=1
SyncRecompareAfterCopy=0
I have compared two folders (sync dirs - the left is a local folder and the right a unc path) with the following settings: "Empty dirs", "Asymetric", "Subdirs".
After the comparison finished, i noticed that a bunch of junctions i had in the left drive (at lower levels of the tree) appeared in the list as existing only on the left side and marked for copy to the right side (just them, not any files under them). Since "SyncIgnoreJunctions=1", i expected them to not appear at all in the list, right?
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
- sqa_wizard
- Power Member
- Posts: 3879
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
Re: [TC11.03 x64] SyncIgnoreJunctions not working as expected
help wrote:SyncIgnoreJunctions=0 0: Also follow junctions (reparse points) to directories when synchronizing
1: Exclude directory junctions from synchronizing
Warning: If a directory with the same name exists on the second side, files in it seem to exist only on that side because the junction on the first side is excluded!
#5767 Personal license
Re: [TC11.03 x64] SyncIgnoreJunctions not working as expected
Thanks, i had already seen that. First of all, i'm talking about the first side, not the second (i presume first side is the side with the junction (at the left) and second the other side). Secondly, this part of help talks about the files under it and not the directory itself.sqa_wizard wrote: ↑2024-09-15, 18:27 UTCWarning: If a directory with the same name exists on the second side, files in it seem to exist only on that side because the junction on the first side is excluded
From what i've read in that part of help, i couldn't understand if the junction itself should be shown or not. IMO it shouldn't but since i'm not sure, i reported it here so that either it is corrected (if Christian decides it's a bug) or the help file is changed so that it better reflects what the user should expect to see.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
- ghisler(Author)
- Site Admin
- Posts: 48642
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC11.03 x64] SyncIgnoreJunctions not working as expected
I need a test case to reproduce the problem, e.g. some instructions where to create junctions (e.g. x levels deeper than the base of the synchrinization), and whether there is a junction or directory on the other side with the same name.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC11.03 x64] SyncIgnoreJunctions not working as expected
2ghisler(Author)
- Create a folder somewhere in your drive.
- Copy the attached batch file in it.
- Execute it (it assumes "junction.exe" is somewhere in the path or in the same folder as the batch file).
In TC:
- Left panel=FolderA
- Right panel=FolderB
- Sync Dirs/Compare (with the same settings (screen and INI)) mentioned in my previous post).
As you can see, Folder2 appears in the comparison results. Since it is a junction and SyncIgnoreJunctions=1, according to help, it shouldn't.
- Create a folder somewhere in your drive.
- Copy the attached batch file in it.
- Execute it (it assumes "junction.exe" is somewhere in the path or in the same folder as the batch file).
In TC:
- Left panel=FolderA
- Right panel=FolderB
- Sync Dirs/Compare (with the same settings (screen and INI)) mentioned in my previous post).
As you can see, Folder2 appears in the comparison results. Since it is a junction and SyncIgnoreJunctions=1, according to help, it shouldn't.
help file wrote:SyncIgnoreJunctions=0 0: Also follow junctions (reparse points) to directories when synchronizing
1: Exclude directory junctions from synchronizing
Warning: If a directory with the same name exists on the second side, files in it seem to exist only on that side because the junction on the first side is excluded!
test.bat wrote:MIME-Version: 1.0
Content-Type: application/octet-stream; name="test.bat"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.bat"
QGVjaG8gb2ZmDQoNCm1rZGlyIEZvbGRlckENCm1rZGlyIEZvbGRlckINCg0KbWtkaXIgRm9sZGVy
QVxGb2xkZXIxDQpta2RpciBGb2xkZXJBXEZvbGRlcjFcVGVzdFN1YkZvbGRlcjENCmp1bmN0aW9u
IEZvbGRlckFcRm9sZGVyMiBGb2xkZXJBXEZvbGRlcjENCg==
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
- ghisler(Author)
- Site Admin
- Posts: 48642
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC11.03 x64] SyncIgnoreJunctions not working as expected
I will try it, thanks.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 48642
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC11.03 x64] SyncIgnoreJunctions not working as expected
I have tested this now: As you already found out, SyncIgnoreJunctions=1 does not hide junctions, it just doesn't follow them. So junctions to directories would be displayed when "Empty directories" is checked, but the sync tool wouldn't look inside.
I agree that it would be better to hide them altogether. I will also update the help which only mentions following the junctions.
I agree that it would be better to hide them altogether. I will also update the help which only mentions following the junctions.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC11.03 x64] SyncIgnoreJunctions not working as expected
Great, thanks for following this.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
- ghisler(Author)
- Site Admin
- Posts: 48642
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC11.03 x64] SyncIgnoreJunctions not working as expected
This has been changed in Total Commander 11.50 beta 1, please check it!
04.10.24 Fixed: When SyncIgnoreJunctions=1, junctions to directories are now completely hidden from sync (previously, they would be shown but not followed) (32/64)
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC11.03 x64] SyncIgnoreJunctions not working as expected
OK, it seems to work correctly. It's a little confusing though that the folders are always shown left-justified, especially with Asymmetric, but it was always like this. I have recently started using Asymmetric mode and i guess it takes some time to get used to it.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Re: [TC11.03 x64] SyncIgnoreJunctions not working as expected
Right, it's a different compilation...
No i hadn't. I just did though and it has the same behavior.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.