Skip to main content

total_bytes

Function total_bytes 

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

Total size of the filesystem containing path, or None when the question cannot be answered.

Only used to check available_bytes against something: a free-space probe wired to the wrong syscall still returns a plausible number, and “is it less than the disk it is on” is the cheapest question that catches that.