inotify_add_watch 함수

(PECL inotify >= 0.1.2)

inotify_add_watch - 초기화된 inotify 인스턴스에 watch 추가


설명

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

inotify_add_watch()는 새 감시를 추가하거나 pathname에 지정된 파일 또는 디렉토리에 대한 기존 감시를 수정합니다.

감시 객체에서 inotify_add_watch()를 사용하면 기존 감시를 대체합니다. IN_MASK_ADD 상수를 사용하면 기존 watch에 (OR) 이벤트가 추가됩니다.


매개변수

inotify_instance
inotify_init()에 의해 반환된 리소스
pathname
File or directory to watch
mask
주목해야 할 이벤트. 미리 정의된 상수를 참조하십시오.

반환 값

반환 값은 고유한(inotify 인스턴스 전체) 감시 설명자입니다.


기타