canonicalize

Function canonicalize 

Source
pub fn canonicalize(p: &Path) -> Result<PathBuf>
Expand description

Canonicalize a path, the custom way.

std::fs::canonicalize not supported on wasi target, so we emulate it. On Windows, std::fs::canonicalize return a /? prefix that break hashmap. Instead use a custom canonicalize.