I'm currently facing an issue with the RubyZip library while processing large zip files containing hundreds of thousands of files. It seems that RubyZip has a limitation of 65535 files per zip archive.
Is there a recommended approach or alternative solution to efficiently handle and process large zip files with a high number of files using Ruby? Any insights or code examples would be greatly appreciated.
Thank you in advance for your assistance!
It seems that RubyZip has a limitation of 65535 files per zip archive
That depends on the format being used. The original Zip format from 1989 had a limit of 65,535 files per archive. A 64-bit variant called "Zip64" was introduced with version 4.5 in 2001 which suppports up to 264 (minus 1) files.
Zip64 support in RubyZip 2.x is disabled by default and you have to enabled it via:
Zip.write_zip64_support = true
Starting with version 3.x (currently in alpha), it will be enabled by default.