• Convenience method to covert a file URL into the file path of the directory

    Parameters

    • url: string | URL

      A file URL

    • Rest ...resolvePaths: string[]

      An optional list of paths to resolve against the dir path.

    Returns string

    A file path based on url and any resolvePaths. With no resolvePaths returns the URL directory path.