def match?(path)
      path = ::Rack::Utils.unescape_path path
      return false unless ::Rack::Utils.valid_path? path
      path = ::Rack::Utils.clean_path_info path

      paths = [path, "#{path}#{ext}", "#{path}/#{@index}#{ext}"]

      if match = paths.detect { |p|
        path = File.join(@root, p.b)
        begin
          File.file?(path) && File.readable?(path)
        rescue SystemCallError
          false
        end
      }
        return ::Rack::Utils.escape_path(match).b
      end
    end
def match?(path)
      path = ::Rack::Utils.unescape_path path
      return false unless ::Rack::Utils.valid_path? path
      path = ::Rack::Utils.clean_path_info path

      paths = [path, "#{path}#{ext}", "#{path}/#{@index}#{ext}"]

      if match = paths.detect { |p|
        path = File.join(@root, p.b)
        begin
          File.file?(path) && File.readable?(path)
        rescue SystemCallError
          false
        end
      }
        return ::Rack::Utils.escape_path(match).b
      end
    end
Takes a path to a file. If the file is found, has valid encoding, and has
 correct read permissions, the return value is a URI-escaped string
 representing the filename. Otherwise, false is returned.

 Used by the +Static+ class to check the existence of a valid file
 in the server's +public/+ directory (see Static#call).