Can't synchronize folder and 7z archive by content

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
misvin
Member
Member
Posts: 112
Joined: 2010-08-14, 11:25 UTC

Can't synchronize folder and 7z archive by content

Post by *misvin »

Windows 10 Pro (32-bit and 64-bit)
TC 9.12 (32-bit and 64-bit)
Synchronize Dirs... Command

I can't compare file contents between a folder and a 7-Zip archive (.7z): the files show up marked red and with a question mark in between them.

Please note that I can select a row in the "Synchronize directories" window and execute successfully "Compare left & right" operation (Ctrl+F3).

There are no such problems with .zip archives.
gdpr deleted 6
Power Member
Power Member
Posts: 872
Joined: 2013-09-04, 14:07 UTC

Post by *gdpr deleted 6 »

Confirmed with TC64 9.12 on Windows 7 Pro x64.
Have not tested TC32, so no comment on the 32-bit version.

(Side note: Using a packer plug-in like Total7zip can be a workaround, albeit with some performance disadvantage with regard to file comparisons in the sync. tool. Probably due to the nature of the packer plug-in interface, TC's sync. tool can't compare files "on the fly" when using Total7zip but unpacks the 7z archive to a temp folder before starting to compare the files...)
MartinK
Junior Member
Junior Member
Posts: 53
Joined: 2010-11-19, 20:21 UTC
Location: Brno, Czech Republic

Post by *MartinK »

Confirmed with TC32 9.12 on Windows 10 Pro x32 ver 1709.

On clean TC without plugins it works well with ARJ, RAR, ZIP.

The 7-zip works well only when the 7zip.wcx or Total7zip.wcx plugin is installed.

The same error is also for the CAB archives. Here help plugin Total7zip too.

Code: Select all

[PackerPlugins]
7z=735,%COMMANDER_PATH%\Plugins\wcx\Total7zip\Total7zip.wcx
cab=735,%COMMANDER_PATH%\Plugins\wcx\Total7zip\Total7zip.wcx
Tip: The Total7zip directory update files from the latest 7-zip version.

I did not test other types of archives because I do not use them.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This function isn't supported, sorry. Red with question mark indicates that compare by content couldn't be used. This is a limitation of the internal 7zip unpacker.
Author of Total Commander
https://www.ghisler.com
misvin
Member
Member
Posts: 112
Joined: 2010-08-14, 11:25 UTC

Post by *misvin »

ghisler(Author) wrote:This function isn't supported, sorry. Red with question mark indicates that compare by content couldn't be used. This is a limitation of the internal 7zip unpacker.
Is it planned to add this function to the internal 7zip unpacker in the future?
In any case, I suggest to describe this restriction in the help file.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

misvin wrote:
ghisler(Author) wrote:This function isn't supported, sorry. Red with question mark indicates that compare by content couldn't be used. This is a limitation of the internal 7zip unpacker.
Is it planned to add this function to the internal 7zip unpacker in the future?
In any case, I suggest to describe this restriction in the help file.
There is no real benefit using the internal 7z function.
The Total7zip plugin allows to use always the actual 7zip version
with all its functions and supported formats.
The internal 7z is just fine for users which only need basic 7z unpacking.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
gdpr deleted 6
Power Member
Power Member
Posts: 872
Joined: 2013-09-04, 14:07 UTC

Post by *gdpr deleted 6 »

Horst.Epp wrote:There is no real benefit using the internal 7z function
As far as i know, the packer plug-in API does not provide a function to provide direct access to the extracted data stream of the files in an archive. That means, there would be a significant benefit in TC using 7z DLL functionality directly, as this would allow TC to compare files "on the fly" without needing to unpack the 7z archive to a temp folder before starting the comparison process. (An alternative route would be to expand the packer plug-in interface enabling such functionality. But then, not only would be changes to TC's code be necessary, but packer plug-ins wanting to support such functionality would need to be changed/updated as well.)

Alas, since the TC is currently unable to do it that way, users pretty much must use some packer plug-in if they want to have 7z support in the sync. tool...
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 whether I can add it, but probably not. There isn't really a big benefit either because you can't pack with internal 7zip, only unpack. So full sync would require a plugin anyway.
Author of Total Commander
https://www.ghisler.com
Post Reply