Skip to main content

available_bytes

Function available_bytes 

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

Free bytes available to unprivileged users on the volume containing path (statvfs f_bavail × f_frsize). None when the call fails — the check then degrades to “proceed” rather than inventing a number.