package inotify

  1. Overview
  2. Docs
Inotify bindings for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v2.4.tar.gz
md5=6f8c4363528ab10b31f66d18ce095ac1
sha512=d164ab997517008671fdd60ab219cf1539f75928334838f416e31799a2c5198a97eb9d795225c3bb40cc41ac8431022c26b7c8b78ad2d45673158a5e2e554997

doc/inotify.lwt/Lwt_inotify/index.html

Module Lwt_inotifySource

An Lwt wrapper for Inotify module

Sourcetype t

Type of inotify descriptors.

Sourceval create : unit -> t Lwt.t

create () returns a new inotify descriptor.

Sourceval 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.

Sourceval rm_watch : t -> Inotify.watch -> unit Lwt.t

rm_watch desc watch stops desc from watching watch.

read desc waits for an event to occur at desc.

Sourceval try_read : t -> Inotify.event option Lwt.t

try_read desc returns Some event if desc has queued events, or None otherwise.

Sourceval close : t -> unit Lwt.t

close desc frees desc.