Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
An Lwt
wrapper for Inotify
module
val add_watch : t -> string -> Inotify.selector list -> Inotify.watch Lwt.t
add_watch desc path events
sets up desc
to watch for events
occuring to path
, and returns a watch descriptor.
val rm_watch : t -> Inotify.watch -> unit Lwt.t
rm_watch desc watch
stops desc
from watching watch
.
val read : t -> Inotify.event Lwt.t
read desc
waits for an event to occur at desc
.
val try_read : t -> Inotify.event option Lwt.t
try_read desc
returns Some event
if desc
has queued events, or None
otherwise.