-8.50b3 Compare files inside archives

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
gora
Junior Member
Junior Member
Posts: 87
Joined: 2010-12-17, 10:37 UTC
Location: Russian

-8.50b3 Compare files inside archives

Post by *gora »

Made a few different types of archives and the same content:

Code: Select all

 1_920.7z (archiver 7-Zip v9.20)
 1_930.7z (archiver 7-Zip v9.30)
 1.ace
 1.cab
 1_4.rar (method RAR4)
 1_5.rar (method RAR5)
 1.zip
Put a copy of these files in different folders. Open the same archives in different folders and compared their contents. The results:

Unequal (shows the symbol "?"): 1_920.7z, 1_930.7z, 1.ace, 1.cab
https://dl.dropboxusercontent.com/u/35142695/NoEqual.png

Equal (shows the symbol "="): 1_4.rar, 1_5.rar, 1.zip
https://dl.dropboxusercontent.com/u/35142695/Equal.png

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

Post by *ghisler(Author) »

? means that TC could not compare the files.
= means that it could compare them, and they were equal.

The problem is that when you have solid archives, you have to unpack them in a specific order. This isn't possible if you have them on both sides, because each one may have a different file order. Therefore this comparison is only supported in some special cases.
Author of Total Commander
https://www.ghisler.com
User avatar
gora
Junior Member
Junior Member
Posts: 87
Joined: 2010-12-17, 10:37 UTC
Location: Russian

Post by *gora »

ghisler(Author) wrote:The problem is that when you have solid archives, you have to unpack them in a specific order.
1 I compared only identical files 1_920.7z <=> 1_920.7z, 1.ace <=> 1.ace etc.
2 I checked the files 1.ace, 1.cab on TC v8.01 and got "="
3 I did nonsolid 1_920_ns.7z and checked it - got "?"
User avatar
MaxX
Power Member
Power Member
Posts: 1175
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2gora
total7zip.wcx works with sync-compare fine
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, it's currently not supported with internal 7zip unpacker. Please install a plugin if you need this.
Author of Total Commander
https://www.ghisler.com
User avatar
gora
Junior Member
Junior Member
Posts: 87
Joined: 2010-12-17, 10:37 UTC
Location: Russian

Post by *gora »

7z archives compares well, thank you.
Last edited by gora on 2013-09-25, 19:09 UTC, edited 1 time in total.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

As I remember, TC never compared files in CAB archives by contents, and it is very sad. One of the most popular archives - TC's Install.cab which I sync with TC directory in order to update to new beta.
Post Reply