Function getURLDirpath
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
urland anyresolvePaths. With noresolvePathsreturns the URL directory path.- url: string | URL
Convenience method to covert a file URL into the file path of the directory