In my Rails app I am trying to collect the paths to all the files contained in two different directories using
common_file_paths = Dir.glob("app/assets/mystuff/*").reject do |path|
more_file_paths = Dir.glob("app/assets/mystuff/more/*").reject do |path|
file_paths = common_file_paths + more_file_paths
Dir.glob also accepts an array of patterns.