Öntanımlı Sabitler

Buradaki sabitler bu eklenti için tanımlanmış olup, sadece eklentinin PHP içinde derlenmiş olması veya çalışma anında dinamik olarak yüklenmesi halinde kullanılabilir.

Inotify constants usable with inotify_add_watch() and/or returned by inotify_read()
IN_ACCESS (int)
File was accessed (read) (*)
IN_MODIFY (int)
File was modified (*)
IN_ATTRIB (int)
Metadata changed (e.g. permissions, mtime, etc.) (*)
IN_CLOSE_WRITE (int)
File opened for writing was closed (*)
IN_CLOSE_NOWRITE (int)
File not opened for writing was closed (*)
IN_OPEN (int)
File was opened (*)
IN_MOVED_TO (int)
File moved into watched directory (*)
IN_MOVED_FROM (int)
File moved out of watched directory (*)
IN_CREATE (int)
File or directory created in watched directory (*)
IN_DELETE (int)
File or directory deleted in watched directory (*)
IN_DELETE_SELF (int)
Watched file or directory was deleted
IN_MOVE_SELF (int)
Watch file or directory was moved
IN_CLOSE (int)
Equals to IN_CLOSE_WRITE | IN_CLOSE_NOWRITE
IN_MOVE (int)
Equals to IN_MOVED_FROM | IN_MOVED_TO
IN_ALL_EVENTS (int)
Bitmask of all the above constants
IN_UNMOUNT (int)
File system containing watched object was unmounted
IN_Q_OVERFLOW (int)
Event queue overflowed (wd is -1 for this event)
IN_IGNORED (int)
Watch was removed (explicitly by inotify_rm_watch() or because file was removed or filesystem unmounted
IN_ISDIR (int)
Subject of this event is a directory
IN_ONLYDIR (int)
Only watch pathname if it is a directory (Since Linux 2.6.15)
IN_DONT_FOLLOW (int)
Do not dereference pathname if it is a symlink (Since Linux 2.6.15)
IN_MASK_ADD (int)
Add events to watch mask for this pathname if it already exists (instead of replacing mask).
IN_ONESHOT (int)
Monitor pathname for one event, then remove from watch list.

Bilginize: The events marked with an asterisk (*) above can occur for files in watched directories.

add a note

User Contributed Notes 2 notes

up
7
crownedgrouse
16 years ago
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 .
up
4
rogere84 at gmail dot com
11 years ago
I noticed that the values of the constants seem to be missing. Granted, these could change dependant on version but on my system here are the values (should you want them).IN_ACCESS = 1IN_MODIFY = 2IN_ATTRIB = 4IN_CLOSE_WRITE = 8IN_CLOSE_NOWRITE = 16IN_OPEN = 32IN_MOVED_FROM = 64IN_MOVED_TO = 128IN_CREATE = 256IN_DELETE = 512IN_DELETE_SELF = 1024IN_MOVE_SELF = 2048IN_UNMOUNT = 8192IN_Q_OVERFLOW = 16384IN_IGNORED = 32768IN_CLOSE = 24IN_MOVE = 192IN_ALL_EVENTS = 4095IN_ONLYDIR = 16777216IN_DONT_FOLLOW = 33554432IN_MASK_ADD = 536870912IN_ISDIR = 1073741824IN_ONESHOT = 2147483648
To Top