Skip to main content

real_path

Function real_path 

Source
pub fn real_path(p: &Path) -> PathBuf
Expand description

p with symlinks resolved, as the CLI’s process would name it. On Windows canonicalize returns a \\?\ verbatim path, which names the folder ----C--repo where the CLI, seeing C:\repo, names it C--repo. Tests that build a working directory take it from here too: a raw canonicalize gives them a path no real cwd has (#3749).