hannobraun / inotify-rs

Idiomatic inotify wrapper for the Rust programming language
ISC License
254 stars 65 forks source link

Clarify that Event may have a name for indirectly-watched directories. #169

Closed calmofthestorm closed 3 years ago

calmofthestorm commented 3 years ago

Clarify that events will populate the Name field when the Event is in a watched directory but does not concern a file or directory that is watched directly. The previous documentation implied this only applied to files, but at least on 5.10.0-3 I'm finding that it applies to both files and directories, with the relevant point being only whether it is watched directly, and this behavior makes more sense anyway IMO.

hannobraun commented 3 years ago

Thank you, @calmofthestorm!