NXT.FindList files on the brick matching a given pattern.
Find.patt conn fpatt returns an iterator listing the filenames mathing the pattern fpatt. The following types of wildcards are accepted:
val current : 'a iterator -> string Lwt.tFind.current i returns the current filename.
val current_size : 'a iterator -> int Lwt.tFind.current_size i returns the current filename size (number of bytes).
val next : 'a iterator -> unit Lwt.tExecute a new request to the brick to retrieve the next filename matching the pattern.
val close : 'a iterator -> unit Lwt.tclose_iterator i closes the iterator i. Closing an already closed iterator does nothing.
val iter : 'a conn -> f:(string -> int -> unit Lwt.t) -> string -> unit Lwt.titer f fpatt iterates f name size on all the filenames matching the pattern fpatt (see Mindstorm_lwt.NXT.Find.patt for the accepted patterns).
val map : 'a conn -> f:(string -> int -> 'b Lwt.t) -> string -> 'b list Lwt.tmap f fpatt maps f name size on all the filenames matching the pattern fpatt and return the list formed of those. (See Mindstorm_lwt.NXT.Find.patt for the accepted patterns.)
val fold : 'a conn -> f:(string -> int -> 'b -> 'b Lwt.t) -> string -> 'b -> 'b Lwt.tfold f fpatt a0 folds f on all the filenames matching the pattern fpatt (see Mindstorm_lwt.NXT.Find.patt for the accepted patterns).