pub fn path_of_uri(uri: &str) -> Option<PathBuf>
The folder a file:// URI names (a client’s root), or none if it names none: its percent-escapes decoded, and a Windows drive’s slash dropped (file:///C:/x is C:/x).
file://
file:///C:/x
C:/x