inotify_add_watch
inotify_add_watch
Add a watch to an initialized inotify instance
**inotify_add_watch** resource $inotify_instance string $pathname int $mask
adds a new watch or modify an
existing watch for the file or directory specified in
.
inotify_add_watch``pathname
Using on a watched object replaces
the existing watch. Using the constant
adds (OR) events to the existing watch.
inotify_add_watch``IN_MASK_ADD
inotify_instanceinotify.instance.description
pathnameFile or directory to watch
mask
Events to watch for. See .
ReservedConstants
The return value is a unique (inotify instance wide) watch descriptor, return.falseforfailure.
inotify_init