summaryrefslogtreecommitdiffstats
path: root/src/aggregate.rs
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2019-06-01 15:42:17 +0530
committerSebastian Thiel <sthiel@thoughtworks.com>2019-06-01 15:42:17 +0530
commit310cd6af912cda7333496d5d5d80a68d6ea9b155 (patch)
tree23100722e98bc7c25cabb8619bd209674068f01f /src/aggregate.rs
parent9d0949933cb46d2e73c047b5f06201dbd75bca1d (diff)
Add minimal library documentation
Diffstat (limited to 'src/aggregate.rs')
-rw-r--r--src/aggregate.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/aggregate.rs b/src/aggregate.rs
index 6079e04..5fe5536 100644
--- a/src/aggregate.rs
+++ b/src/aggregate.rs
@@ -3,6 +3,9 @@ use failure::Error;
use std::borrow::Cow;
use std::{io, path::Path};
+/// 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.
pub fn aggregate(
mut out: impl io::Write,
options: WalkOptions,