下列常量由此扩展定义,且仅在此扩展编译入 PHP 或在运行时动态载入时可用。
IN_ACCESS
(integer)
IN_MODIFY
(integer)
IN_ATTRIB
(integer)
IN_CLOSE_WRITE
(integer)
IN_CLOSE_NOWRITE
(integer)
IN_OPEN
(integer)
IN_MOVED_TO
(integer)
IN_MOVED_FROM
(integer)
IN_CREATE
(integer)
IN_DELETE
(integer)
IN_DELETE_SELF
(integer)
IN_MOVE_SELF
(integer)
IN_CLOSE
(integer)
IN_MOVE
(integer)
IN_ALL_EVENTS
(integer)
IN_UNMOUNT
(integer)
IN_Q_OVERFLOW
(integer)
IN_IGNORED
(integer)
IN_ISDIR
(integer)
IN_ONLYDIR
(integer)
IN_DONT_FOLLOW
(integer)
IN_MASK_ADD
(integer)
IN_ONESHOT
(integer)
Note: The events marked with an asterisk (*) above can occur for files in watched directories.
crownedgrouse (2009-03-13 02:11:19)
Be carefull using IN_MODIFY :
Lot of UNIX editor, for instance like 'vi', work in a 'xxx~' file, and changes are written in 'xxx' when saving or saving and closing.
If a watcher is done on 'xxx', no IN_MODIFY event occurs while not saved !
Prefere IN_CLOSE_WRITE in such case .