Module Header.Extended

type t = {
  1. access_time : int64 option;
    (*

    second granularity since the Epoch

    *)
  2. charset : string option;
  3. comment : string option;
  4. group_id : int option;
  5. gname : string option;
  6. header_charset : string option;
  7. mod_time : int64 option;
    (*

    second granularity since the Epoch

    *)
  8. path : string option;
  9. file_size : int64 option;
  10. user_id : int option;
  11. uname : string option;
}

Represents a "Pax" extended header.

val make : ?access_time:int64 -> ?charset:string -> ?comment:string -> ?group_id:int -> ?gname:string -> ?header_charset:string -> ?link_path:string -> ?mod_time:int64 -> ?path:string -> ?file_size:int64 -> ?user_id:int -> ?uname:string -> unit -> t

make () creates an extended header.

val to_detailed_string : t -> string

Pretty-print the extended header record.

val unmarshal : global:t option -> string -> (t, [> error ]) Stdlib.result

Unmarshal a pax Extended Header block. This header block may be preceded by global blocks which will override some fields.