A simple and efficient Rust library for watching file system changes. It is built on top of notify and tokio crates.
- Simple API for watching file system changes like creation, modification, deletion and renaming
- Fully async-compatible using
tokioruntime - Provides wrapper over
notifyevents
Add watchr_filesystem to your Cargo.toml:
[dependencies]
watchr_filesystem = "0.1.0"use watchr_filesystem::FileWatcher;
let watcher = FileWatcher::new(vec![PathBuf::from("./destination")]);
watcher.watch(callbackFunction);This project is released under the MIT License.
