Does anyone know if there\'s an existing module/function inside Ruby to traverse file system directories and files? I\'m looking for something similar to Python\'s os
os
The following will print all files recursively. Then you can use File.directory? to see if the it is a directory or a file.
Dir['**/*'].each { |f| print f }