Skip to main content

parse_df

Function parse_df 

Source
pub fn parse_df(out: &str) -> Option<(u64, String)>
Expand description

Parse df -kP <path> output: (available bytes, mount point).

Parsed from the right so filesystem names with spaces do not shift the columns: the capacity column is the one ending in %.