FSWatcher.addWatch

Add a watch point.

struct FSWatcher
@safe
addWatch
(
const(char)[] path
,
uint mask
,)

Parameters

path const(char)[]

The path to watch

mask uint

The events we should watch for. See details in Inotifier.

callback WatchEventCallback

The delegate to be called when the events happen. Will be passed a Inotifier.Event struct. The code will run under a critical section, so it must not yield.

Meta