# File actionview/lib/action_view/template/resolver.rb, line 198
def template_glob(glob)
query = File.join(escape_entry(@path), glob)
path_with_slash = File.join(@path, "")
Dir.glob(query).filter_map do |filename|
filename = File.expand_path(filename)
next if File.directory?(filename)
next unless filename.start_with?(path_with_slash)
filename
end
end