watchr_filesystem

Crates.iowatchr_filesystem
lib.rswatchr_filesystem
version0.1.0
created_at2025-01-24 13:33:00.937531+00
updated_at2025-01-24 13:33:00.937531+00
descriptionA simple file watcher that watches a list of paths and calls a callback when any of them change
homepage
repositoryhttps://github.com/webdevcaptain/watchr
max_upload_size
id1529423
size113,979
Shreyash (WebDevCaptain)

documentation

README

Watchr

A simple and efficient Rust library for watching file system changes. It is built on top of notify and tokio crates.

Features

  1. Simple API for watching file system changes like creation, modification, deletion and renaming
  2. Fully async-compatible using tokio runtime
  3. Provides wrapper over notify events

Watchr in action

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.

Commit count: 11

cargo fmt