mirror of
https://github.com/MrBeanCpp/MIT.git
synced 2026-04-30 21:59:50 +08:00
处理Windows下绝对路径转换产生的"\\\\?\\"前缀
This commit is contained in:
@@ -47,7 +47,7 @@ pub fn add(files: Vec<String>, all: bool, mut update: bool) {
|
||||
}
|
||||
|
||||
fn add_a_file(file: &Path, index: &mut Index) {
|
||||
println!("add a file: {}", get_relative_path(file, get_working_dir().unwrap()).display());
|
||||
println!("add a file: {}", get_relative_path(file, &*get_working_dir().unwrap()).display());
|
||||
if !file.exists() { //文件被删除
|
||||
index.remove(file);
|
||||
} else { //文件存在
|
||||
|
||||
Reference in New Issue
Block a user