SyncIgnoreJunctions

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
tm8544
Junior Member
Junior Member
Posts: 25
Joined: 2008-11-29, 08:11 UTC
Location: Finland

SyncIgnoreJunctions

Post by *tm8544 »

SyncIgnoreJunctions=1 should exclude directory junctions from synchronizing.

With SyncIgnoreJunctions=1 TC 11.01RC3 synchronizes the top-level of junction, but excludes the contents (files and subdirs).

For example with the directory structure below, directory junction "PHP-TEMP" is copied as a directory, but its contents are excluded.
If directory junctions are to be excluded, shouldn't also the top-level of the junction be excluded, not just its contents?

Code: Select all

30.08.2023  11.38    <JUNCTION>     PHP-TEMP [D:\LOGS\PHP-TEMP]
30.08.2023  12.22    <DIR>          lib
30.08.2023  12.22    <DIR>          dev
23.06.2023  12.29    <DIR>          ext
30.08.2023  12.22    <DIR>          extras
30.08.2023  12.22         1 609 728 glib-2.dll
30.08.2023  12.22            18 944 gmodule-2.dll
30.08.2023  12.22        31 255 040 icudt72.dll
30.08.2023  12.22         3 049 984 icuin72.dll
30.08.2023  12.22            60 928 icuio72.dll
30.08.2023  12.22         2 270 720 icuuc72.dll
Copying using CopyLinks=0 with IgnoreLinks=1 works as expected with the above directory structure.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: SyncIgnoreJunctions

Post by *ghisler(Author) »

SyncIgnoreJunctions determines whether Total Commander follows junctions to folders or not when synchronizing. The checkbox "empty directories" determines whether the junctions themselves show up in the results or not (they are like directories to the system). They also show up in sub-directories when synchronizing. I don't think that the current behavior is a bug. But I think that another option would be helpful where the user could decide whether the junctions themselves should be shown or not.

I'm therefore moving this thread to the suggestions forum.

Moderator message

Moved to suggestions
Author of Total Commander
https://www.ghisler.com
tm8544
Junior Member
Junior Member
Posts: 25
Joined: 2008-11-29, 08:11 UTC
Location: Finland

Re: SyncIgnoreJunctions

Post by *tm8544 »

I agree, it is not a bug, but it should be consistent with copy behaviour (with CopyLinks=0 & IgnoreLinks=1).
Hopefully this suggestion can be seen in future versions.
tm8544
Junior Member
Junior Member
Posts: 25
Joined: 2008-11-29, 08:11 UTC
Location: Finland

Re: SyncIgnoreJunctions

Post by *tm8544 »

ghisler(Author) wrote: 2023-09-01, 07:02 UTC SyncIgnoreJunctions determines whether Total Commander follows junctions to folders or not when synchronizing. The checkbox "empty directories" determines whether the junctions themselves show up in the results or not (they are like directories to the system). They also show up in sub-directories when synchronizing. I don't think that the current behavior is a bug. But I think that another option would be helpful where the user could decide whether the junctions themselves should be shown or not.

I'm therefore moving this thread to the suggestions forum.

Moved to suggestions
How about adding the above mentioned option in 11.03?
User avatar
AntonyD
Power Member
Power Member
Posts: 1249
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: SyncIgnoreJunctions

Post by *AntonyD »

2tm8544
Also, as far as I understand, in this tool, even when using this flag, there is no visual clue that this or that object is actually a link/junction. And that's very strange. If we refuse to follow the link/junction down to real files/folders, then the information about this should definitely remain on the screen in some form. Therefore, the question is, what kind of hiding (and what?) are we talking about at all? "junctions themselves" - what is this? In term of SyncDir concept of course)))
#146217 personal license
tm8544
Junior Member
Junior Member
Posts: 25
Joined: 2008-11-29, 08:11 UTC
Location: Finland

Re: SyncIgnoreJunctions

Post by *tm8544 »

In my opinion, It would be more consistent with SyncIgnoreJunctions if empty directories, when they are junctions, would be ingnored totally.

As proposed by ghisler, this could be done with additional option, so those who like to keep currect action, can keep it, and those who like to change it, could change it.

It is always best to let user decide.
Post Reply