KDV
This commit is contained in:
parent
a760d11695
commit
a5a300c520
|
@ -142,7 +142,9 @@ impl Directories {
|
||||||
dbg!("Before windows", &directory);
|
dbg!("Before windows", &directory);
|
||||||
let path_str = directory.to_string_lossy().to_string();
|
let path_str = directory.to_string_lossy().to_string();
|
||||||
if let Some(path_str) = path_str.strip_prefix(r"\\?\") {
|
if let Some(path_str) = path_str.strip_prefix(r"\\?\") {
|
||||||
directory = PathBuf::from(path_str);
|
if path_str.chars().nth(1) == Some(':') {
|
||||||
|
directory = PathBuf::from(path_str);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dbg!("After windows", &directory);
|
dbg!("After windows", &directory);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue