Method lrs::inotify::Inotify::set_watch

Adds a watch or changes the watch of a path.

Syntax

impl Inotify {
    fn set_watch<P>(&self, path: P, events: InodeEvents, flags: WatchFlags) -> Result<InodeWatch, Errno>
        where P: ToCString,
}

Arguments

NameDescription
path

The path of the watch to add or modify.

events

The events to watch for.

flags

Flags to use when creating or modifying the watch.

Return value

Returns the added or modified watch.

See also