I'm not sure why this happens but when I modify a file, I only receive the first event. I would assume I should be seeing events every time the file is modified?
Steps to reproduce
git clone ... ; cd async-watcher
touch test.log
vim examples/simple/src/main.rs
let paths = ["test.log"];
cargo run --bin example-simple
vim test.logedit the file and save
This should create an event, like so:
modified: ["/home/user/async-watcher/test.log"]
edit the file again, and you should receive nothing.
Update: It's because when Vim edits it, it replaces the file under the hood and creates a remove file event, which won't produce any extra events because the file it's watching has already been removed.
Hey mate,
I'm not sure why this happens but when I modify a file, I only receive the first event. I would assume I should be seeing events every time the file is modified?
Steps to reproduce
git clone ... ; cd async-watcher
touch test.log
vim examples/simple/src/main.rs
cargo run --bin example-simple
vim test.log
edit the file and saveThis should create an event, like so:
edit the file again, and you should receive nothing.
Expected behaviour
Receive another modify event