records = Dir.glob("**/*") # => ["file1.txt","file2.txt","dir1","dir1/file1.txt",...]
正如@ fl00r所提到的,你也可以使用速记Dir [“** / *”]