pub fn open_tar_stream(
path: &Path,
codec: Option<Algo>,
) -> Result<Box<dyn Read>>Expand description
Open a (possibly compressed) tar at path as a forward-only byte
stream — make_reader decompresses on the fly, so no tempfile is
ever written. Each call re-opens from byte 0; callers that need a
sizing pre-pass simply call this twice (the “read twice” the
streaming repack trades for not staging to disk).