| Crates.io | watchr_filesystem |
| lib.rs | watchr_filesystem |
| version | 0.1.0 |
| created_at | 2025-01-24 13:33:00.937531+00 |
| updated_at | 2025-01-24 13:33:00.937531+00 |
| description | A simple file watcher that watches a list of paths and calls a callback when any of them change |
| homepage | |
| repository | https://github.com/webdevcaptain/watchr |
| max_upload_size | |
| id | 1529423 |
| size | 113,979 |
A simple and efficient Rust library for watching file system changes. It is built on top of notify and tokio crates.
tokio runtimenotify events
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.