module Slurp: sig .. end
Scans a directory lazily to build a tree that can be user-decorated.
type 'a entry =
val slurp : string -> unit entry
Recursively scan the filesystem starting at the given directory.
val filter : (string -> string -> 'a -> bool) -> 'a entry -> 'a entry
filter f entry only retains from entry the nodes for which
f path name returns true.
val map : (string -> string -> 'a -> 'b) -> 'a entry -> 'b entry
map f entries changes the decoration in entries by applying
f to them. f is called as f path name decoration.
val fold : (string -> string -> 'a -> 'b -> 'b) -> 'a entry -> 'b -> 'b
fold f entry x iterates f over the entries and an accumulator
initially containing x; at each iteration, f gets the current
value of the accumulator and returns its new value.
val force : 'a entry -> unit
Force the evaluation of the whole entry.