module Sprockets::PathUtils

def paths_split(paths, filename)

Returns [String root, String path]

filename - String path of file expected to be in one of the paths.
paths - Array of String paths

Internal: Detect root path and base for file in a set of paths.
def paths_split(paths, filename)
  paths.each do |path|
    if subpath = split_subpath(path, filename)
      return path, subpath
    end
  end
  nil
end