[−][src]Function dua::aggregate
pub fn aggregate(
out: impl Write,
options: WalkOptions,
compute_total: bool,
sort_by_size_in_bytes: bool,
paths: impl IntoIterator<Item = impl AsRef<Path>>
) -> Result<(WalkResult, Statistics), Error>
Aggregate the given paths
and write information about them to out
in a human-readable format.
If compute_total
is set, it will write an additional line with the total size across all given paths
.
If sort_by_size_in_bytes
is set, we will sort all sizes (ascending) before outputting them.