fn canonicalise(path: PathBuf) -> Result<PathBuf, ErrorKind>