package tar-unix

  1. Overview
  2. Docs
Decode and encode tar format files from Unix

Install

Dune Dependency

Authors

Maintainers

Sources

tar-2.6.0.tbz
sha256=caff0cb7046343e2bff7fc0f9217e4e31235555e4c4889fb194792985b6fb1ee
sha512=61cedd25de48cfa8092b4e03e275139ff27aa36f3e24f936bc90e2974e3c52b2460db214b3f8480c6d45bbc59bf2232623dd840b4ce445077393a71e0d005903

doc/tar-unix/Tar_unix/index.html

Module Tar_unixSource

Unix I/O for tar-formatted data.

Sourceval really_read : Unix.file_descr -> Cstruct.t -> unit

really_read fd buf fills buf with data from fd or raises Stdlib.End_of_file.

Sourceval really_write : Unix.file_descr -> Cstruct.t -> unit

really_write fd buf writes the full contents of buf to fd or Stdlib.End_of_file.

Sourceval get_next_header : ?level:Tar.Header.compatibility -> Unix.file_descr -> Tar.Header.t

Returns the next header block or throws End_of_stream if two consecutive zero-filled blocks are discovered. Assumes stream is positioned at the possible start of a header block.

Sourceval header_of_file : ?level:Tar.Header.compatibility -> string -> Tar.Header.t

Return the header needed for a particular file on disk.

Sourceval write_block : ?level:Tar.Header.compatibility -> Tar.Header.t -> (Unix.file_descr -> unit) -> Unix.file_descr -> unit

Write hdr, then call write_body fd to write the body, then zero-pads so the stream is positioned for the next block.

  • deprecated Deprecated in favor of Tar.HeaderWriter
Sourceval write_end : Unix.file_descr -> unit

Write a stream terminator to fd.

  • deprecated Deprecated in favor of Tar.HeaderWriter
Sourcemodule Archive : sig ... end

Utility functions for operating over whole tar archives.

OCaml

Innovation. Community. Security.