in reply to Archive::Zip changing compression on the fly
It looks like
should do what you want.$zip->addFile($file_name)->desiredCompressionLevel(0);
PS Also, in wanted you aren't checking if you have found file or directory, and that may be the reason why addFile returns undef. Add something like
in the beginning of wantedreturn unless -f $File::Find::name;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Archive::Zip changing compression on the fly
by cormanaz (Deacon) on May 22, 2010 at 16:12 UTC | |
by zwon (Abbot) on May 22, 2010 at 16:32 UTC | |
by afoken (Chancellor) on May 23, 2010 at 06:23 UTC | |
by Anonymous Monk on May 23, 2010 at 10:07 UTC |