1
0
Fork 0
mirror of synced 2024-05-17 19:03:08 +12:00
This commit is contained in:
Rafał Mikrut 2023-10-15 21:37:28 +02:00
parent a760d11695
commit a5a300c520

View file

@ -142,7 +142,9 @@ impl Directories {
dbg!("Before windows", &directory);
let path_str = directory.to_string_lossy().to_string();
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);
}