Do not attempt to compress files named with the given suffix

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Hurdet
Power Member
Power Member
Posts: 716
Joined: 2003-05-10, 18:02 UTC

Do not attempt to compress files named with the given suffix

Post by *Hurdet »

info-zip have -n suffixes "Do not attempt to compress files named with the given suffixes".
Do TC use this setting in internal zip?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, TC will compress all files with the rate configured by the user.
Author of Total Commander
https://www.ghisler.com
Hurdet
Power Member
Power Member
Posts: 716
Joined: 2003-05-10, 18:02 UTC

Post by *Hurdet »

do it is possible to add this setting to to streamline the functionality?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Hurdet, you may use separate ignore list for that task.
Hurdet
Power Member
Power Member
Posts: 716
Joined: 2003-05-10, 18:02 UTC

Post by *Hurdet »

if I understand your answer, I do not want to not include the zipped files, but I want to include them without further compress them.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

That's correct, I thought you want to skip theese files. But does it make sense to pack files w/o compression into old and fast ZIP format?
Hurdet
Power Member
Power Member
Posts: 716
Joined: 2003-05-10, 18:02 UTC

Post by *Hurdet »

I do not understand you sure it makes sense.
I have:
alfa1.txt
alfa2.sqlite
alfa3. jpg
alfa4.zip
alf5.rar
it pack all its in zip file alfa.zip with alfa1 and alfa2 compressed and alfa3 alfa4 alfa5 not further compressed.
-n suffixes
Do not attempt to compress files named with the given suffixes. Such files are simply stored (0% compression) in the output zip file, so that zip doesn't waste its time trying to compress them. The suffixes are separated by either colons or semicolons. For example:

zip -rn .Z:.zip:.tiff:.gif:.snd foo foo

will copy everything from foo into foo.zip, but will store any files that end in .Z, .zip, .tiff, .gif, or .snd without trying to compress them (image and sound files often have their own specialized compression methods). By default, zip does not compress files with extensions in the list .Z:.zip:.zoo:.arc:.lzh:.arj. Such files are stored directly in the output archive. The environment variable ZIPOPT can be used to change the default options. For example under Unix with csh:

setenv ZIPOPT "-n .gif:.zip"

To attempt compression on all files, use:

zip -n : foo

The maximum compression option -9 also attempts compression on all files regardless of extension.
On Acorn RISC OS systems the suffixes are actually filetypes (3 hex digit format). By default, zip does not compress files with filetypes in the list DDC:D96:68E (i.e. Archives, CFS files and PackDir files).
Again:
do it is possible to use the environment variable ZIPOPT with internal zip TC?
Post Reply