Expand description
Turns one input path into a sequence of independently-readable members.
The load-bearing decision: every tar member is handed to the caller as its
own Read. That is what makes per-member line numbers, real member paths,
and per-member binary detection all fall out for free.
Structs§
- Outcome
- What happened while walking one archive.
Functions§
- for_
each_ member - Walk every regular member, handing each to
fas its own reader. - open_
decoded - Open a path and strip one layer of compression if present.
- open_
decoded_ dropping open_decoded, plus the option to hand the archive’s pages back to the kernel once it has been read.- walk_
archive - Open
pathand hand each member tof, whatever kind of archive it is: a tar under any one compression, a zip, or a single compressed or plain file as one anonymous member. Never returnsErr, for the reasonfor_each_membergives; a file that cannot be opened is an error on itsOutcome.