Canonicalize also windows paths
This commit is contained in:
parent
44400e08af
commit
0fe77edf64
1 changed files with 2 additions and 10 deletions
|
@ -62,16 +62,8 @@ impl Directories {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If not checking windows strange paths, try to canonicalize them
|
// If not checking windows strange paths, try to canonicalize them
|
||||||
if !directory.starts_with("\\") {
|
if let Ok(dir) = directory.canonicalize() {
|
||||||
let Ok(dir2) = directory.canonicalize() else {
|
directory = dir;
|
||||||
messages.warnings.push(flc!(
|
|
||||||
"core_directory_must_exists",
|
|
||||||
generate_translation_hashmap(vec![("path", directory.display().to_string())])
|
|
||||||
));
|
|
||||||
continue;
|
|
||||||
};
|
|
||||||
|
|
||||||
directory = dir2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
checked_directories.push(directory);
|
checked_directories.push(directory);
|
||||||
|
|
Loading…
Reference in a new issue