Skip to main content

normalized_path

Function normalized_path 

Source
pub fn normalized_path(path: &Path) -> PathBuf
Expand description

What: Normalize a path lexically, the way Node’s path.join and path.resolve do. Why: Recorded paths must match the incumbent’s spelling byte for byte, and PathBuf::join keeps . and ...

In TS you’d write (pseudocode):

path.resolve(path);