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 {