Skip to main content

file_url_to_path

Function file_url_to_path 

Source
pub(crate) fn file_url_to_path(url_str: &str) -> Option<PathBuf>
Expand description

Parses a file:// URL into a local path using the url crate.

Returns None if the URL isn’t a valid file:// URL or can’t be converted to a platform path (e.g. file://remote/share on Windows).