A related question: In the “do_stuff_here” part of
the for loop, is there a function I can call that
will return the path of the file being read?
How about using the file.path method
for f in Dir.glob(“./some_directory/**/*”)
File.open(f) { |file|
puts file.path
} if File.file?(f)
end