Sync Dirs doesn't show Empty dirs in some cases

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Sync Dirs doesn't show Empty dirs in some cases

Post by *DrShark »

1. Create following directory tree:
c:\Test1\1\
c:\Test2\1\


2. Go to c:\Test1\1\ in left panel and in c:\Test2\1\ in right.

3. Call Sync dirs, check "Empty directories" and press "=" aka "Equal files" button. Press compare -> nothing will shown.
Although the "1\" dirs in left and right panel are not "equal files", there are "equal directories" and it would be logical to show the "1\" dir as a result of comparing.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Do you mean to go to c:\Test1 and c:\Test2 in step 2?

If yes, the behaviour is by design. Empty directories will be shown only when present on only one side.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

ghisler(Author) wrote:Do you mean to go to c:\Test1 and c:\Test2 in step 2?
Yes.
ghisler(Author) wrote:If yes, the behaviour is by design. Empty directories will be shown only when present on only one side.
I don't agree with that design :) Why?
For example, Sync Dirs have a useful feature "Delete on both sides". With the same emty dirs shown I would able easy to select & delete empty dirs on both sides.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, this would overload the dialog with many empty folders when nothing has changed. I will therefore not change the current behaviour.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Maybe optional via wincmd.ini switch, disabled by default?
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

It will not be changed only for 7.55 or at all?
If this can be re-considered for next major versions, maybe it's better to move the thread to the Suggestions forum?
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC 7.55 is now in release candidate state, so no new features at this time (or the beta test would go on forever). However, I have put this suggestion on my wish list, so I may be adding it to a future version.
Author of Total Commander
https://www.ghisler.com
Post Reply