Skip to main content

normalize_path_separators

Function normalize_path_separators 

Source
pub fn normalize_path_separators(s: &str) -> String
Expand description

Convert any Windows-style backslash separators in s to forward slashes. Cross-platform path string normalization for cases where the downstream consumer (artifact-manifest JSON, MSYS subprocess env var) is sensitive to separator drift between Linux/macOS and Windows hosts.