hannobraun / inotify-rs

Idiomatic inotify wrapper for the Rust programming language
ISC License
261 stars 65 forks source link

Add Watches struct with add/remove methods #197

Closed talklittle closed 2 years ago

talklittle commented 2 years ago

Adds Inotify.watches() and EventStream.watches() to get the Watches struct. Watches::add and Watches::remove are intended to replace the now-deprecated Inotify::add_watch and Inotify::rm_watch.

Hope I understood the refactoring specifications and scope correctly. Fixes #177