Created
October 25, 2012 01:07
-
-
Save pzaich/3949902 to your computer and use it in GitHub Desktop.
Use RubyZip to open zip file and iterate through its contents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'zip/zipfilesystem' | |
| z = "somepath" | |
| Zip::ZipFile.open(z) do |zipfile| | |
| zipfile.glob("**/*.*").each do |entry| | |
| {block} | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment