Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 5, 2015

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