Adds or updates the events being watched for the specified path. The handler delegate previously specified will be called when one of the watched events occurs.
File path to watch (directories are also supported)
Inotify events that will be watched (flags)
upon failure during addition of new file to watch
See Implementation
Adds or updates the events being watched for the specified path. The handler delegate previously specified will be called when one of the watched events occurs.