Skip to content

include full path to the file that triggered the event#8

Merged
passcod merged 1 commit intonotify-rs:masterfrom
blaenk:fix-paths
Mar 5, 2015
Merged

include full path to the file that triggered the event#8
passcod merged 1 commit intonotify-rs:masterfrom
blaenk:fix-paths

Conversation

@blaenk
Copy link
Contributor

@blaenk blaenk commented Mar 4, 2015

The Event::path, when given by inotify, only gives the Path::file_name, because it has no notion of recursive watches. The good thing is that we already store a map of directory paths to inotify watchers, so we can use that to join the file name in the inotify event. This way, a deeply nested event yields the appropriate, full path, otherwise we have no way of distinguishing separate files with the same name, and therefore make sit impossible to locate the file that the event is for.

passcod added a commit that referenced this pull request Mar 5, 2015
Include full path to the file that triggered the event
@passcod passcod merged commit c191fa4 into notify-rs:master Mar 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants