inotify_add_watch()
inotify_add_watch - Add a watch to an initialized inotify instance
Syntax
int inotify_add_watch (
resource $inotify_instance,
string $pathname,
int $mask)
Arguments
- inotify_instance - Resource returned by inotify_init()
- pathname - File or directory to watch
- mask - Events to watch for. See Predefined Constants.
Description
inotify_add_watch() adds a new watch or modify an existing watch for the file or directory specified in pathname.
Version
PHP PECL inotify >= 0.1.2
Return value
The return value is a unique (inotify instance wide) watch descriptor.