Skip to content

Instantly share code, notes, and snippets.

@joshcarter
joshcarter / sum_dvd_media.rb
Created October 25, 2012 22:48
Checksum directory of DVD images
def each_file(root, &block)
Dir.foreach(root) do |entry|
next if entry.start_with?(".")
entry = File.join(root, entry)
if File.file?(entry)
block.call(entry)
else
each_file(entry, &block)