array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'function.inotify-add-watch.php', 1 => 'inotify_add_watch', ), 'up' => array ( 0 => 'ref.inotify.php', 1 => 'Funciones Inotify', ), 'prev' => array ( 0 => 'ref.inotify.php', 1 => 'Funciones Inotify', ), 'next' => array ( 0 => 'function.inotify-init.php', 1 => 'inotify_init', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'es', 'path' => 'reference/inotify/functions/inotify-add-watch.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL inotify >= 0.1.2)
inotify_add_watch — Añade un seguimiento a una instancia inotify inicializada
inotify_add_watch() añade un nuevo seguimiento o modifica
un seguimiento existente para el fichero o directorio especificado en
pathname
.
Usando inotify_add_watch() sobre un objeto observado
reemplaza el seguimiento existente. Utilizando la constante
IN_MASK_ADD
añade eventos al seguimiento existente.
inotify_instance
Recurso devuelto por inotify_init()
pathname
Fichero o directorio a observar
mask
Eventos para observar. Ver Constantes predefinidas.
The return value is a unique (inotify instance wide) watch descriptor. El valor devuelto es un descriptor de seguimiento único.