Unzipping with the Zip Gem

EDIT: 8 Oct 2016
I deleted the snippet that was here before as I found it just wasn’t working right in all situations :/.

This blog post by Mark Needham turned out to be exactly what I needed though. With a few tweaks we have it where calling unzip_file will give us an array of every file extracted from our zip file.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.