info-zip have -n suffixes "Do not attempt to compress files named with the given suffixes".
Do TC use this setting in internal zip?
Do not attempt to compress files named with the given suffix
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50923
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
No, TC will compress all files with the rate configured by the user.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
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.
do it is possible to use the environment variable ZIPOPT with internal zip TC?
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.
Again:-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).
do it is possible to use the environment variable ZIPOPT with internal zip TC?