Strange Sync Dirs bug

Bug reports will be moved here when the described bug has been fixed

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:

Strange Sync Dirs bug

Post by *DrShark »

From russian forum.
The screenshot of the bug with the options of Sync dirs window here and test archive:
http://forum.wincmd.ru/viewpost.php?p=62896
In short, what you need to reproduce it:
a) d:\Test.rar with following structure inside:
d:\Test.rar\Test\1\Test.txt
d:\Test.rar\Test\2\Test.txt
d:\Test.rar\Test\3\Test.txt
d:\Test.rar\Test\Test.txt

b) Next directory structure:
d:\Test\1\Test.txt
d:\Test\2\Test.txt
d:\Test\3\Test.txt
d:\Test\Test.txt


Go to d:\Test.rar\Test\ in left panel and d:\Test\ in right.
Call SyncDirs, set up the options like on screenshot from link above and press compare. The bug doesn't happen when "[ ] Empty directories" option is unchecked.

Some users reported that they can't reproduce the bug with RAR but can with ZIP. Strange thing is that I can reproduce in only with RAR and not on C:\ drive.
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: 48118
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Confirmed, thanks! Maybe it depends on how the folders are stored in the archive...
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Confirm the bug and fix in 7.55rc1.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48118
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks! The problem was that the directories were stored without trailing slash or backslash, which confused my compare function.

2DrShark
Can you confirm the fix?
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 »

I can confirm the bugfix in 7.55 RC1.
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: 48118
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Great, thanks very much!
Author of Total Commander
https://www.ghisler.com
Post Reply