@@ -104,6 +104,10 @@ pub fn normalize_path(path: &Path) -> PathBuf {
107+// Returns the canonical, absolute form of a path with all intermediate components normalized.
109+// This function is used instead of `std::fs::canonicalize` because we don't want to verify
110+// here if the path exists, just normalize it's components.
107pub fn canonicalize_path(path: &Path) -> std::io::Result<PathBuf> {
111pub fn canonicalize_path(path: &Path) -> std::io::Result<PathBuf> {
108 std::env::current_dir().map(|current_dir| normalize_path(¤t_dir.join(path)))
112 std::env::current_dir().map(|current_dir| normalize_path(¤t_dir.join(path)))