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: sheep, Hacker, Stefan2, white

Post Reply
misvin
Junior Member
Junior Member
Posts: 72
Joined: 2010-08-14, 11:25 UTC

Can't synchronize folder and 7z archive by content

Post by *misvin » 2017-12-03, 20:06 UTC

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.

User avatar
elgonzo
Senior Member
Senior Member
Posts: 377
Joined: 2013-09-04, 14:07 UTC

Post by *elgonzo » 2017-12-03, 23:01 UTC

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...)
Windows 7 Pro x64 SP1

MartinK
Junior Member
Junior Member
Posts: 39
Joined: 2010-11-19, 20:21 UTC
Location: Brno, Czech Republic

Post by *MartinK » 2017-12-04, 14:08 UTC

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: 38395
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2017-12-04, 15:51 UTC

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
http://www.ghisler.com

misvin
Junior Member
Junior Member
Posts: 72
Joined: 2010-08-14, 11:25 UTC

Post by *misvin » 2017-12-04, 16:26 UTC

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: 3473
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp » 2017-12-04, 16:44 UTC

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 10 Home x64 November 2019 Update, Version 1909 (OS Build 18363.476)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.50ß8 x64 / x86, Everything 1.4.1.958 (x64)

User avatar
elgonzo
Senior Member
Senior Member
Posts: 377
Joined: 2013-09-04, 14:07 UTC

Post by *elgonzo » 2017-12-04, 17:26 UTC

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...
Windows 7 Pro x64 SP1

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38395
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2017-12-07, 11:06 UTC

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
http://www.ghisler.com

Post Reply