ruby get all files in directory and subdirectories code example Example: ruby list of files in directory include subfolders Dir['**/*'] Dir.glob('**/*')