Skip to content

Commit

Permalink
Document Tar.fold
Browse files Browse the repository at this point in the history
  • Loading branch information
reynir committed May 9, 2024
1 parent 576dcff commit b1c10d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/tar.mli
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,6 @@ val return : ('a, 'err) result -> ('a, 'err, _) t
type ('a, 'err, 't) fold = (?global:Header.Extended.t -> Header.t -> 'a -> ('a, 'err, 't) t) -> 'a -> ('a, 'err, 't) t

val fold : ('a, [> `Fatal of error ], 't) fold
(** [fold f] is a [_ t] that reads an archive and executes [f] on each header.
[f] is expected to either read or skip the file contents, or return an
error. *)

0 comments on commit b1c10d0

Please sign in to comment.