Module inotify::watch_mask [] [src]

Contains the WatchMask flags

Contains constants for all valid WatchMask flags, which can be used to compare against a WatchMask instance using WatchMask::contains.

Structs

WatchMask

Mask for a file watch

Constants

ACCESS

File was accessed.

ALL_EVENTS

Watch for all events.

ATTRIB

Metadata changed.

CLOSE

Watch for both IN_CLOSE_WRITE and IN_CLOSE_NOWRITE.

CLOSE_NOWRITE

File or directory not opened for writing was closed.

CLOSE_WRITE

File opened for writing was closed.

CREATE

File/directory created in watched directory.

DELETE

File/directory deleted from watched directory.

DELETE_SELF

Watched file/directory was itself deleted.

DONT_FOLLOW

Don't dereference the path if it is a symbolic link

EXCL_UNLINK

Don't watch events for children that have been unlinked from watched directory.

MASK_ADD

If a watch instance already exists for the inode corresponding to the given path, amend the existing watch mask instead of replacing it.

MODIFY

File was modified.

MOVE

Watch for both MOVED_FROM and MOVED_TO.

MOVED_FROM

Generated for the directory containing the old filename when a file is renamend.

MOVED_TO

Generated for the directory containing the new filename when a file is renamed.

MOVE_SELF

Watched file/directory was itself moved.

ONESHOT

Only monitor for one event, then remove the watch

ONLYDIR

Only watch path, if it is a directory.

OPEN

File or directory was opened.