1 unstable release
| 0.1.0 | Jan 24, 2025 |
|---|
#45 in #file-watcher
96KB
Watchr
A simple file watcher that watches a list of paths and calls a callback when any of them change
Watchr
A simple and efficient Rust library for watching file system changes. It is built on top of notify and tokio crates.
Features
- Simple API for watching file system changes like creation, modification, deletion and renaming
- Fully async-compatible using
tokioruntime - Provides wrapper over
notifyevents

Installation
Add watchr_filesystem to your Cargo.toml:
[dependencies]
watchr_filesystem = "0.1.0"
Usage
use watchr_filesystem::FileWatcher;
let watcher = FileWatcher::new(vec![PathBuf::from("./destination")]);
watcher.watch(callbackFunction);
License
This project is released under the MIT License.
Dependencies
~3–14MB
~89K SLoC