Set compression level when generating a ZIP file using RubyZip

Posted by Vincent Robert on Stack Overflow See other posts from Stack Overflow or by Vincent Robert
Published on 2010-03-18T16:09:30Z Indexed on 2010/03/18 16:11 UTC
Read the original article Hit count: 309

Filed under:
|
|
|

Hi,

I have a Ruby program that zips a directory tree of XML files using the rubyzip gem. My problem is that the file is starting to be heavy and I would like to increase the compression level, since compression time is not an issue.

I could not find in the rubyzip documentation a way to specify the compression level for the created ZIP file.

Anyone know how to change this setting?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about rubyzip