Takes a string representing either an absolute URL or a file path,
as it may be passed to deno as a command line argument.
The string is interpreted as a URL if it starts with a valid URI scheme,
e.g. ‘http:’ or ‘file:’ or ‘git+ssh:’. If not, it’s interpreted as a
file path; if it is a relative path it’s resolved relative to passed
current_dir.
Attempts to convert a url to a file path. By default, uses the Url
crate’s to_file_path() method, but falls back to try and resolve unix-style
paths on Windows.