Skip to content

Version 3.0.0 does not support tar+gz for lwt #148

@jonahbeckford

Description

@jonahbeckford

The API in

let fold f filename init =
let open Lwt_result.Infix in
safe Lwt_unix.(openfile filename [ O_RDONLY ]) 0 >>= fun fd ->
Lwt.finalize
(fun () -> run (Tar.fold f init) fd)
(fun () -> safe_close fd)

is missing the (Tar_gz.in_gzipped (Tar.fold f init)) that would be required to read .tar.gz files.

There is probably somewhere else in the same file to add in Tar_gz.out_gzipped.

Or is there another way to do it? I can't find any examples or tests for this use case.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions