Skip to main content

normalize_join

Function normalize_join 

Source
pub fn normalize_join(source_dir: &str, path: &str) -> String
Expand description

Join source_dir and a relative path, then resolve ./.. segments, producing a clean docs-root-relative path (no leading slash). .. that would escape the docs root is clamped (dropped) rather than allowed to walk out.