Skip to main content

normalize_path_separators

Function normalize_path_separators 

Source
pub fn normalize_path_separators(value: &str, format: PathFormat) -> String
Expand description

Normalize path separators to match format.

  • Posix: no normalization — backslashes are valid filename characters
  • Windows: /\ (unless the value is a URI)
  • Uri: no normalization