Skip to main content

normalize_windows_path

Function normalize_windows_path 

Source
pub fn normalize_windows_path(path: &Path) -> PathBuf
Expand description

Normalize a Windows path for comparisons and Win32 APIs.

Valid DOS and UNC extended-length paths lose their verbatim prefix. Other namespaces remain untouched because they cannot be represented safely without that prefix. Separators and drive letter casing are also normalized.