TC10.0 does not search tar.gz properly

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
al20878
Junior Member
Junior Member
Posts: 25
Joined: 2018-07-31, 13:32 UTC

TC10.0 does not search tar.gz properly

Post by *al20878 »

Hi,

When I'm searching (ALT-F7) for a file with the "Search archives" tick marked, TC10.0 does not seem to correctly find files within the tar.gz archives...

Is that a feature?

When I "descend" into the archive in the file panel, I can see the file there perfectly fine (although, it's in a "subdirectory" of the .tgz file, not at the top level).

Also, looks like the tar.Z files (compressed with the "compress" utility rather than "gzip") are not supported at all... Can this please be considered as a feature request?

Thanks,
AL
User avatar
karlchen
Power Member
Power Member
Posts: 4601
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Re: TC10.0 does not search tar.gz properly

Post by *karlchen »

al20878 wrote: 2021-08-23, 19:08 UTC Also, looks like the tar.Z files (compressed with the "compress" utility rather than "gzip") are not supported at all...
For archives, which have been compressed, you need the Z unpacker plugin for Total Commander, available for downloading e.g. here: Z packer plugin (Unix archive format). The 64-bit version is an unofficial port by 'Christian Ghisler'.
MX Linux 21.3 64-bit xfce, Total Commander 10.52 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: TC10.0 does not search tar.gz properly

Post by *Usher »

2al20878
TC itself doesn't support automatic actions for nested archives in general:
https://www.ghisler.ch/board/search.php?keywords=nested+archive*&terms=all&author=ghisler*&sc=1&sf=all&sr=posts&sk=t&sd=d&st=0&ch=9999&t=0&submit=Search

It may be too slow, too complex or too risky in some cases.
Andrzej P. Wozniak
Polish subforum moderator
al20878
Junior Member
Junior Member
Posts: 25
Joined: 2018-07-31, 13:32 UTC

Re: TC10.0 does not search tar.gz properly

Post by *al20878 »

Thanks!

Although tar.gz files are really extremely streamable and can be processed on the fly without having to unpack them and store onto the disk, just for the purposes of collecting and building the file tree (and -- just from reading that thread -- if a user ticked "search in archives" by themselves, why would they be "upset" that it took a little longer? it clearly was asked for!). But anyways, now I know that TC doesn't do that, and it's fine.
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: TC10.0 does not search tar.gz properly

Post by *Usher »

2al20878
Never heard about zip bomb?
There are other similar cases: compressed image of empty unformatted HDD, broken archives deliberately packed to not use them, etc.
Andrzej P. Wozniak
Polish subforum moderator
al20878
Junior Member
Junior Member
Posts: 25
Joined: 2018-07-31, 13:32 UTC

Re: TC10.0 does not search tar.gz properly

Post by *al20878 »

> Never heard about zip bomb?

Hmmm...
And how that would be different from an attempt to "descend" into such a thing by just "entering" it (with the Enter key)?
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: TC10.0 does not search tar.gz properly

Post by *Usher »

2al20878
Visually ;-)
Imagine "Search in separate process" (Shift+Alt+F7) filling %TEMP% directory (and system partition in background).
Andrzej P. Wozniak
Polish subforum moderator
Post Reply