Skip to main content

filesystem_capacity_bytes

Function filesystem_capacity_bytes 

Source
pub fn filesystem_capacity_bytes(path: &Path) -> Option<u64>
Expand description

Return the total capacity in bytes of the filesystem hosting path. Picks the disk with the longest matching mount-point prefix. Returns None when the capacity cannot be determined (e.g. unsupported platform or path outside any known mount), so callers can skip the check.