async-fsw 0.1.0

Cross-platform asynchronous filesystem notification library for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
> Cross-platform asynchronous filesystem notification library for Rust.

This library allows for asynchronous observation of filesystem changes. This project is built on top of [async-std](https://async.rs/) an [notify](https://github.com/notify-rs/notify) projects.

## Example

```rs
use async_fsw::{Watcher, WatchMode};

let mut w = Watcher::new();
w.set_path("/tmp", WatchMode::Recursive);
w.observe().await;

while let Some(event) = w.incomming().recv().await {
    println!("Event: {:?}", event);
}
```