This file contains 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
#!/usr/bin/env ruby | |
# Note this doesn't deal with directories in zip files. | |
# That's documented elsewhere. The recursive processing of | |
# zip files in zip files was the tricky bit. | |
require 'zip' | |
def recursive_zip_reader(input) | |
if input.is_a? String | |
zip_file = Zip::File.open(input) |
OlderNewer