package inotify-eio

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Eio_inotifySource

An Lwt wrapper for Inotify module

Sourcetype t

Type of inotify descriptors.

Sourceval create : unit -> t

create () returns a new inotify descriptor.

Sourceval add_watch : t -> string -> Inotify.selector list -> Inotify.watch

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

rm_watch desc watch stops desc from watching watch.

Sourceval read : t -> Inotify.event

read desc waits for an event to occur at desc.

Sourceval try_read : t -> Inotify.event option

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

Sourceval close : t -> unit

close desc frees desc.

OCaml

Innovation. Community. Security.