From a5a300c520bc0c7cd4fc1910f9c19b78524e9831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mikrut?= Date: Sun, 15 Oct 2023 21:37:28 +0200 Subject: [PATCH] KDV --- czkawka_core/src/common_directory.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/czkawka_core/src/common_directory.rs b/czkawka_core/src/common_directory.rs index 8fbfe7d..5fa6a43 100644 --- a/czkawka_core/src/common_directory.rs +++ b/czkawka_core/src/common_directory.rs @@ -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); }