Adds a watch or changes the watch of a path.
impl Inotify {
fn set_watch<P>(&self, path: P, events: InodeEvents, flags: WatchFlags) -> Result<InodeWatch, Errno>
where P: ToCString,
}| Name | Description |
|---|---|
| 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. |
Returns the added or modified watch.