pub fn resolve_path(path: &str, cwd: &str) -> StringExpand description
Resolve a potentially relative path against a given working directory.
- If
pathstarts with/, it is treated as absolute and normalized. - Otherwise,
pathis appended tocwdwith a/separator and normalized.