Skip to main content

available_space

Function available_space 

Source
pub fn available_space(path: &Path) -> Result<u64>
Expand description

Get the space in bytes a non-privileged process may still write to the filesystem holding path.

Blocks reserved for privileged processes make this smaller than the space that is free. Per-user quotas are not counted.

statvfs(3) counts blocks in units of the fragment size.