mirror of
https://github.com/MrBeanCpp/MIT.git
synced 2026-04-09 05:38:28 +08:00
Index:在成员函数中对传入的path进行预处理,统一路径形式(absolute)
This commit is contained in:
@@ -178,7 +178,7 @@ pub fn get_absolute_path(path: &Path) -> PathBuf {
|
||||
if path.is_absolute() {
|
||||
path.to_path_buf()
|
||||
} else {
|
||||
let abs_path = path.canonicalize().unwrap();
|
||||
let abs_path = path.canonicalize().unwrap(); //这一步会统一路径分隔符
|
||||
clean_win_abs_path_pre(abs_path)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user