only those files and directories that pred returns true for are watched, by default every file/directory.
directory to watch together with its content and subdirectories.
events to watch for. See man inotify and core.sys.linux.sys.inotify.
paths that failed to be added.
Recursively add the path and all its subdirectories and files to be watched.