Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Tar_eio.ArchiveSourceUtility 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 ->
unittransform 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.
val create :
?getpwuid:(int64 -> string) ->
?getgrgid:(int64 -> string) ->
Eio.Fs.dir Eio.Path.t list ->
Eio.Flow.sink ->
unitCreate a tar in the sink from a list of file paths. It only supports regular files.
See header_of_file for the meaning of getpwuid and getgrgid.