watchr_filesystem 0.1.0

A simple file watcher that watches a list of paths and calls a callback when any of them change
Documentation
  • Coverage
  • 100%
    4 out of 4 items documented0 out of 3 items with examples
  • Size
  • Source code size: 113.51 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.39 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 38s Average build duration of successful builds.
  • all releases: 38s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • WebDevCaptain/watchr
    0 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • WebDevCaptain

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.