aNotify
Async Bindings for the iNotify api
This crate is still a work in progress! The core functionality is there, but it's not all there (and some claimed features are not currently functional), so I wouldn't recommend using it yet. I am open to bug reports though, so if you use it and find any don't hesitate to let me know!
extern crate anotify;
extern crate eyre;
let mut owner = new
.wrap_err?;
let file_watch = owner.file?
.open
.watch?;
file_watch.await
.wrap_err?;
let directory_watch = owner.dir?
.modify
.watch?;
while let Some = directory_watch.next.await
.wrap_err?