Skip to main content

walk_stream

Function walk_stream 

Source
pub fn walk_stream(
    stream: &mut dyn ArchiveStream,
    sink: &mut dyn RepackSink,
) -> Result<()>
Expand description

Stream any sequential archive straight into sink — the non-random-access counterpart to walk_anyfs, generic over the archive format via ArchiveStream. Bodies are streamed (never fully resident); parent directories are created on demand; hard links the destination can’t represent fall back to a destination-sourced copy via RepackSink::materialise_copy. Does not call sink.finish() — the caller does that after any final bookkeeping (matching walk_anyfs).