fs-change-notifier

Crates.iofs-change-notifier
lib.rsfs-change-notifier
version0.2.0
created_at2025-07-01 23:38:48.846343+00
updated_at2026-01-11 10:52:59.274854+00
descriptionSimple library to watch file changes inside given directory
homepage
repositoryhttps://github.com/markcda/fs-change-notifier
max_upload_size
id1734224
size20,592
Klimenty Titov (markcda)

documentation

README

fs-change-notifier

Simple library to watch file changes inside given directory.

Usage example:

use fs_change_notifier::{create_watcher, match_event, RecursiveMode};

let root = PathBuf::from(".");
let (mut wr, rx) = create_watcher(|e| log::error!("{e:?}")).unwrap();
wr.watch(&root, RecursiveMode::Recursive).unwrap();
loop {
    tokio::select! {
        _ = your_job => {},
        _ = match_event(&root, rx, &exclude) => {
            // do your logic on fs update
        },
    }
}
Commit count: 9

cargo fmt