-
Notifications
You must be signed in to change notification settings - Fork 0
/
IO.mli
23 lines (16 loc) · 986 Bytes
/
IO.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(**************************************************************************)
(* *)
(* Copyright (c) 2014 - 2016. *)
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* *)
(* All rights reserved. No warranty, explicit or implicit, provided. *)
(* *)
(**************************************************************************)
open Error_monad
val mkdir: string -> unit
val check_dir: string -> unit tzresult Lwt.t
val is_directory: string -> bool
val with_file_in: string -> (MBytes.t -> 'a Lwt.t) -> 'a Lwt.t
val with_file_out: string -> MBytes.t -> unit Lwt.t
val remove_file: ?cleanup:bool -> string -> unit Lwt.t
val fold: string -> init:'a -> f:(string -> 'a -> 'a Lwt.t) -> 'a Lwt.t