Skip to content

Instantly share code, notes, and snippets.

@pzaich
Created October 25, 2012 01:07
Show Gist options
  • Select an option

  • Save pzaich/3949902 to your computer and use it in GitHub Desktop.

Select an option

Save pzaich/3949902 to your computer and use it in GitHub Desktop.
Use RubyZip to open zip file and iterate through its contents
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