Module Topkg_care_archive.Tar

ustar encoder.

References. ustar Interchange Format in POSIX 1003.1, 2013.

Ustar encoder

type ptime = int

The type for POSIX times in seconds since the epoch.

type t

The type for ustar archives.

val empty : t

empty is the empty ustar archive.

val add : t -> Fpath.t -> mode:int -> mtime:ptime -> [ `Dir | `File of string ] -> (tBos_setup.R.msg) Bos_setup.result

add a f mode mtime kind adds to archive a an element of type kind with file path f, permission mode mode and modificaton time mtime.

val to_string : t -> string

to_string a is the byte serialization of the archive a.