Mega Code Archive
Finding the Files
require 'find'
module Find
def match(*paths)
matched = []
find(*paths) { |path| matched << path if yield path }
return matched
end
module_function :match
end
# Find the empty files.
Find.match('./') { |p| File.lstat(p).size == 0 }