Emty folder deletion in SynchDirs for ZIPs

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:

Emty folder deletion in SynchDirs for ZIPs

Post by *DrShark »

From russian forum.

1. Create following file & directory structure:
a) for left panel
c:\zzz\Dir1\file0.ext
c:\zzz\Dir2\file1.ext

b) for right panel make a zip archive zzz.zip of "zzz" dir, you'll have:
d:\zzz.zip\zzz\Dir1\file0.ext
d:\zzz.zip\zzz\Dir2\file1.ext


2. Create dir:
d:\zzz.zip\zzz\Dir3

3. Start SyncDirs with c:\zzz\ in left panel and d:\zzz.zip\zzz\ in right.

4. Mark [x]Empty dirs checkbox and enter |* as compare mask. Then press "Compare" button.

5. In compare results, select (with mouse) Dir3,
call its context menu and select "->Delete right".

Unexpected result: Dir3 folder won't get removed.

If you'll compare c:\zzz and d:\zzz.zip\ (not d:\zzz.zip\zzz\) in 3rd step, Dir3 removed correctly in 5th step.
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: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Strange, I will check that. Maybe it's not possible, depending on how the directory is stored.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I can confirm the error, it happens only when you start the comparison in a subdiretory of the zip.
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 »

The original bug is fixed, but appeared new one:
copy or move d:\zzz.zip\zzz\Dir3 to one level up (d:\zzz.zip\Dir3), and start comparing from d:\zzz.zip\ in right panel.
Deleting the dir d:\zzz.zip\Dir3 from Comparing results will fail.
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: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for confirming the fix! Sorry, I don't understand your second report. If you compare
c:\zzz
with
d:\zzz.zip\

There will be a directory "Dir3" on both side, which TC doesn't even show. Please send me detailed instructions to reproduce your problem,
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:There will be a directory "Dir3" on both side
Dir3 is available only in archive on right side.
Screenshot: [IMG=http://img532.imageshack.us/img532/1791/tcsyncbug.jpg][/IMG]
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: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Strange, I will check that. Since it's in the root, there should be no problem...
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 »

Thanks, both original and new bugs are fixed as of TC 7.55 RC3.
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: 48021
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