normalize_url_path

Function normalize_url_path 

Source
pub fn normalize_url_path(path: &str) -> Cow<'_, str>
Expand description

Normalize the path component of a URL for use as a file path.

For example, on Windows, transforms C:\Users\ferris\wheel-0.42.0.tar.gz to /C:/Users/ferris/wheel-0.42.0.tar.gz.

On other platforms, this is a no-op.