CakeFest 2024: The Official CakePHP Conference

inotify_add_watch

(PECL inotify >= 0.1.2)

inotify_add_watchAjoute un point de surveillance à une instance inotify

Description

inotify_add_watch(resource $inotify_instance, string $pathname, int $mask): int|false

inotify_add_watch() ajoute un point de surveillance à une instance inotify ou modifie un point de surveillance en cours vers un nouveau fichier ou dossier spécifié par le chemin pathname.

Utiliser inotify_add_watch() sur un objet déjà en surveillance modifie la configuration. Utiliser la constante IN_MASK_ADD ajoute les événements (OR logique).

Liste de paramètres

inotify_instance

Ressource returnée par inotify_init()

pathname

Fichier ou dossier à surveiller.

mask

Événements à surveiller. Voyez Constantes pré-définies.

Valeurs de retour

La valeur retournée est un pointeur inotify unique (inotify instance wide), ou false si une erreur survient.

Voir aussi

add a note

User Contributed Notes 2 notes

up
5
lezsakdomi1 at gmail dot com
6 years ago
For an example see inotify_ini: http://php.net/inotify-init
up
5
lingtalfi
9 years ago
inotify_add_watch
returns false when you watch a non existing directory.
To Top