-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Error for non-registered events? #17
Comments
Line 588 in ba477e9
Yep, looks like it. I've debated on if this is good design or not, but I feel like checking the error type against the |
Thanks for the explanation. Makes sense. |
I've tried checking for Also, when removing a directory, my |
You're right. The formatting with I actually recall running into this when I was writing this function. I didn't want to lose the event mask that goes along with the error, and did it this way, but it seems that was short sighted. I hate to do this for such a one-part-of-the-code case, but I think wrapping the actual Thanks for your input, really appreciate it. |
That's great, thanks! In regards to the second issue, I'm watching a single directory and am interested in 3 events: file created, directory created, directory removed. All events are working fine, but for "directory removed" events, I'm getting the 32768 mask "no such handle" error. This is the code in main:
|
Following up on your last comment in #16, here's what I mean:
2019/11/19 20:23:38 Directory created: mysubdir
in the console2019/11/19 20:23:40 handle not found: event mask: 32768
in the console (triggered by line 75 of handlers.go, printing an error)Step 5 is what confuses me. Does this mean that all unregistered fs events throw an error (instead of e.g. be disregarded)? Thanks!
The text was updated successfully, but these errors were encountered: