normalize_path

Function normalize_path 

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

Normalize path separators (cross-platform)

Converts backslashes to forward slashes.

ยงExample

assert_eq!(normalize_path("path\\to\\file"), "path/to/file");
assert_eq!(normalize_path("path/to/file"), "path/to/file");