Skip to main content

disk_usage

Function disk_usage 

Source
pub fn disk_usage(root: &Path) -> Result<u64, Error>
Expand description

Return the used bytes of the filesystem containing root.

Callers decide how to report a failure. The sampler polls this on a short interval, so logging an error here would repeat for as long as the directory is unavailable.