Skip to main content

normalize

Function normalize 

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

normalize of fjs/path, for the paths a directory read answers: \ is /, empty and . segments vanish, .. cancels the segment before it or is kept where nothing is left to cancel, and a root, /, // or a drive’s C:/, stays and absorbs the .. that would climb past it. A bare C: and the drive-relative C:a are ordinary segments, as they are there.