Function getURLDirpath

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

      Parameters

      • url: string | URL

        A file URL

      • ...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.