package inotify

  1. Overview
  2. Docs
Inotify bindings for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v2.4.1.tar.gz
md5=5bb1c5754d305acf9c1f10611f49aae2
sha512=3e114ee0e8b5b9c7c996df0d2cd8f03e0efdfb9837c1990f98c256868c0e2ad275f91be1adcfbbbcf1bdab801f18e82efa483510d2566e0d12cb303dfc91e4e5

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.