Open hugwijst opened 8 months ago
Relates to #255, #291, and #381, but seems distinct.
Reading https://docs.rs/inotify/latest/inotify/struct.Watches.html#attention-updating-watches-and-hardlinks, possibly the easiest way to solve this behavior is to keep a list of paths for each WatchDescriptor
and add to that list at- https://github.com/notify-rs/notify/blob/main/notify/src/inotify.rs#L454.
System details
rustc --version
:rustc 1.75.0-nightly (0f44eb32f 2023-11-09)
What you did (as detailed as you can)
I have a directory structure similar to the following:
We put a recursive watch on
root
, and then modifyroot/common/file.json
.What you expected
Either one of:
root/common/file.json
androot/tests/test_1/common/file.json
.root/common/file.json
What happened
Only a notify event is fired for
root/tests/test_1/common/file.json
.