From 45844453b47aee5255abf9b1071a2460104131cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Tue, 21 Mar 2023 17:18:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(list):=E7=BB=A7=E7=BB=AD=E5=B0=9D=E8=AF=95?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=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 4128208..16053f2 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.path.clone().display(); + let dirname = mount.path.clone().unwrap_or_default().display(); let dirname = if dirname.len() == 0 { String::from("/") } else {