Synchronize Dirs: Delete from subdir in archive (RAR,TAR...)

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Synchronize Dirs: Delete from subdir in archive (RAR,TAR...)

Post by *StatusQuo »

In Synchronize Directories (cm_FileSync):
deletion of files in an archive does not work, when starting cm_FileSync from a subdir in the archive.
After some testing I finally found the difference between working and non-working cases:

Creating a test archive:
(or download my sample archive)
  • - create a directory "1"
    - copy at least 2 files into it (to have 1 file remaining if deletion is successful)
    - place the cursor on this directory "1" and pack it into a TAR archive (one of the bad formats, listed below, TC internal packer)
Testing:
  • - in TC's left panel enter the normal directory 1, outside of the archive (you should see the 2 test files)
    - in TC's right panel enter the archive and then the contained directory 1 (you should see the 2 test files)
    - start cm_FileSync, compare, let identical files be displayed
    - press right mouse button on one of the files, choose "Delete right"
:arrow: You'll get an error message "No files found!" (title: "Error creating TAR!")
___

Test results with different packers:
This works OK with ZIP and UC2 format, but fails with all others tested:
  • ZIP: OK (TC internal)
    UC2: OK (uc2r3)

    ACE: fail (winace 2.0)
    ARJ: fail (arj 2.41)
    LZH: fail (lha 2.13)
    RAR: fail (winrar 3.62)
    TAR: fail (TC internal)
    TGZ: fail (TC internal)
(A workaround in most cases:)
OK: When SyncTool was started from the root of the archive (cursor on directory "1"), this works without a problem
___(except: ACE).
OK: Deleting the files outside of the SyncTool (after normal TC navigation to them) works OK
___(except: ACE).
OK: Copying files into the archive inside and outside the SyncTool (same start position as above) works OK
___(except ACE, ARJ, LZH).
=> Here an appropriate error message is shown on unsupported formats: ARJ, LZH, ACE
("You cannot add files to a subdirectory of an archive file.").

(TC 7.02a, Win2k SP4)
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
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 will check that, thanks. I cannot guarantee that it can be made to work, but I will try my best.
Author of Total Commander
https://www.ghisler.com
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

All fixed in TC 7.03 :)
Great, thanks a lot!

ZIP: OK (TC internal)
UC2: OK (uc2r3)
ACE: OK (winace 2.6.1.0)
ARJ: OK (arj 2.41)
LZH: OK (lha 2.13)
RAR: OK (winrar 3.71)
TAR: OK (TC internal)
TGZ: OK (TC internal)

(Win2k, SP4)

[Edit]
HISTORY.TXT wrote:30.03.08 Fixed: Synchronize dirs: Cannot delete files in ARJ/LHA/TAR/RAR archive if synchronize base dir is a subdir of the archive (note: deleting from ACE archives always seems to fail)
I can NOT confirm the note about failing on deleting from ACE archives. Deleting from ACE is no problem here anymore using WinAce 2.6.1.0 and TC 7.03. :?:
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
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 fixes!

Delete from subdirs doesn't work at all with WinACE here, but I have a very old version (2.2.0.0 from 2002) for testing. Nice to hear that it works now!
Author of Total Commander
https://www.ghisler.com
Post Reply