Something went wrong. Try again.
Something went wrong. Try again.
12345678910(** Miscellaneous utilities. *)
val nproc : unit -> int(** [nproc ()] returns the number of available processors. *)
val dir_size : Fpath.t -> (int, [> Rresult.R.msg ]) result(** [dir_size path] returns the total size of all files under [path] in bytes, computed recursively via [Unix.lstat]. Returns [Error] if the directory cannot be read. *)