We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71de96e commit f791153Copy full SHA for f791153
1 file changed
apps/desktop/src-tauri/src/volumes/mod.rs
@@ -474,6 +474,7 @@ pub fn get_volume_space(path: &str) -> Option<VolumeSpaceInfo> {
474
475
let total = get_u64_resource(&url, "NSURLVolumeTotalCapacityKey")?;
476
let available = get_u64_resource(&url, "NSURLVolumeAvailableCapacityForImportantUsageKey")
477
+ .filter(|&v| v > 0)
478
.or_else(|| get_u64_resource(&url, "NSURLVolumeAvailableCapacityKey"))?;
479
480
Some(VolumeSpaceInfo {
0 commit comments