Skip to main content

free_bytes

Function free_bytes 

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

Free bytes on the volume containing path.

There is no portable way to ask for this, so each platform runs its own tiny command, deliberately not a new dependency. The parsing halves are pure and asserted against fixture text; only the subprocess is live.