Php/docs/function.inotify-read

来自菜鸟教程
跳转至:导航、​搜索

inotify_read

(PECL inotify >= 0.1.2)

inotify_readRead events from an inotify instance


说明

inotify_read ( resource $inotify_instance ) : array

Read inotify events from an inotify instance.


参数

inotify_instance
inotify_init()返回的资源


返回值

An array of inotify events or false if no events was pending and inotify_instance is non-blocking. Each event is an array with the following keys:

  • wd is a watch descriptor returned by inotify_add_watch()
  • mask is a bit mask of events
  • cookie is a unique id to connect related events (e.g. IN_MOVE_FROM and IN_MOVE_TO)
  • name is the name of a file (e.g. if a file was modified in a watched directory)


参见