We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 462a5b2 commit 7773a66Copy full SHA for 7773a66
examples/linux-inotify.rs
@@ -37,7 +37,7 @@ fn main() -> std::io::Result<()> {
37
future::block_on(async {
38
// Watch events in the current directory.
39
let mut inotify = Async::new(Inotify::init()?)?;
40
- inotify.get_mut().add_watch(".", WatchMask::ALL_EVENTS)?;
+ inotify.get_mut().watches().add(".", WatchMask::ALL_EVENTS)?;
41
println!("Watching for filesystem events in the current directory...");
42
println!("Try opening a file to trigger some events.");
43
println!();
0 commit comments