Function du::get_size [] [src]

pub fn get_size<P: AsRef<Path>>(path: P) -> Result<u64>

Returns size in bytes of a file or directory. For directories, it recursively gets all of the sizes of its children.