[ Version ( since = "1.0.66" ) ]
public int64 inotify_add_watch (string path, int32 mask) throws Error
add an inotify watch
Watch path
for the events listed in mask
.
Note that if path
is a directory then events within that directory are watched, but this does *not* happen recursively (in
subdirectories).
Note for non-C or non-Linux callers: the inotify events are defined by the Linux kernel ABI and are listed in /usr/include/sys/inotify.h.
This function depends on the feature "inotify". See also feature_available.
this |
A GuestfsSession object |
the returned value, or -1 on error |