1 2 3 4 5 6 7
#!/usr/bin/env ruby root = ARGV[0] tree = { "music" => Dir[File.join(root, "music", "*")], "videos" => Dir[File.join(root, "videos", "*")], } p tree