fix: fallback to 0 if no path can be found for network directory

This commit is contained in:
Ashley Wulber 2025-07-16 18:55:23 -04:00 committed by Jeremy Soller
parent 73e1d7ce52
commit 03ed0857d2

View file

@ -117,8 +117,11 @@ fn network_scan(uri: &str, sizes: IconSizes) -> Result<Vec<tab::Item>, String> {
}
Err(err) => {
log::warn!("failed to read directory {:?}: {}", path, err);
children_opt = Some(0);
}
}
} else {
children_opt = Some(0);
}
}
ItemMetadata::GvfsPath {