Utility functions for operating over whole tar archives
Read the next header, apply the function 'f' to the source and the header. The function should leave the source positioned immediately after the datablock. Finally the function skips past the zero padding to the next header.
List the contents of a tar to stdout.
extract dest extract the contents of a tar. Apply
dest on each source filename to change the destination filename. It only supports extracting regular files from the top-level of the archive.
val transform : ?level:Tar.Header.compatibility -> (Tar.Header.t -> Tar.Header.t) -> Eio.Flow.source -> Eio.Flow.sink -> unit
transform f src sink applies
f to the header of each file in the tar inputted in
src, and writes the resulting headers to
sink preserving the content and structure of the archive.