Skip to content

Instantly share code, notes, and snippets.

@dnch
Created September 17, 2009 07:02
Show Gist options
  • Save dnch/188386 to your computer and use it in GitHub Desktop.
Save dnch/188386 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rubygems'
require 'zip/zip'
require 'zip/zipfilesystem'
require 'digest/md5'
Dir.glob("/Users/dan/Desktop/SAMPLE_DATA/**/*.zip").each do |f|
begin
puts "hash: " + Digest::MD5.hexdigest(Zip::ZipFile.open(f).read("fx.txt"))
rescue Zip::ZipError => e
puts "Skipping #{f}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment