inotify_sys

Constant IN_ONLYDIR

source
pub const IN_ONLYDIR: u32 = 0x01000000;
Expand description

Only watch path, if it is a directory

This bit can be set in inotify_add_watch’s mask parameter, to configure the watch.

See man page for additional details.