From a6ac162bfd9b739854a9b1dd2207719c7afa36f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Tue, 21 Mar 2023 17:15:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(list):=E6=9B=B4=E6=94=B9Windows=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E4=B8=8B=E7=9A=84=E7=9B=98=E7=AC=A6=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/commands/files.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/commands/files.rs b/src-tauri/src/commands/files.rs index 019b11c..4128208 100644 --- a/src-tauri/src/commands/files.rs +++ b/src-tauri/src/commands/files.rs @@ -106,7 +106,7 @@ pub async fn show_drives( .into_string() .unwrap(); #[cfg(target_os = "windows")] - let dirname = mount.name.clone().unwrap_or_default(); + let dirname = mount.path.clone().display(); let dirname = if dirname.len() == 0 { String::from("/") } else {