def resolve_relative_path(paths, path, dirname, accept)
        filename = File.expand_path(path, dirname)
        load_path, _ = PathUtils.paths_split(paths, dirname)
        if load_path && logical_path = PathUtils.split_subpath(load_path, filename)
          resolve_logical_path([load_path], logical_path, accept)
        else
          return nil, nil, nil, Set.new
        end
      end
def resolve_relative_path(paths, path, dirname, accept)
        filename = File.expand_path(path, dirname)
        load_path, _ = PathUtils.paths_split(paths, dirname)
        if load_path && logical_path = PathUtils.split_subpath(load_path, filename)
          resolve_logical_path([load_path], logical_path, accept)
        else
          return nil, nil, nil, Set.new
        end
      end
Internal: Finds a relative file in a set of given paths

 paths   - Array of Strings.
 path    - String. A relative filename with or without extension
           e.g. "./jquery" or "../foo.js"
 dirname - String. Base path where we start looking for the given file.
 accept  - String. A Quality value incoded set of
           mime types that we are looking for. Can be nil.
           e.g. "application/javascript" or "text/css, */*"

 Returns Array. Filename, type, path_pipeline, deps, index_alias