Skip to main content

normalize_msys_path

Function normalize_msys_path 

Source
pub fn normalize_msys_path(path: &str) -> String
Expand description

Convert an MSYS2/Git Bash style path to a native Windows path.

/c/Users/fooC:\Users\foo

On non-Windows platforms, returns the input unchanged. On Windows, only converts paths matching the MSYS pattern /<letter>/.... Already-native paths (e.g., C:\...) pass through unchanged.