pub fn write_pack(
plan: &PackPlan,
dest: &Path,
on_item: impl FnMut(usize),
) -> Result<usize>Expand description
Writes a planned pack to dest, calling on_item with the number of
item folders added so far, and returns the number of items. The archive
is written beside dest, checked and only then moved into place.