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
Inconsistent watcher.Add errors on different platforms #144
Comments
This is in response to:
On OSX this apparently doesn't trigger for file not found and generates a different event. Maybe it's just a different error code on OSX? I don't have a mac, so IDK. |
(that works on GNU/Linux, btw) |
For a non-existent file this currently returns:
We can't really change this without breaking compatibility, as people probably have type assertions for this. Have to look at changing it in v2 to fs.PathError for path errors, and os.SyscallError for errors with the underlying backend. |
on Linux watcher.Add() returns no Error.
on OS X it returns *os.PathError
The text was updated successfully, but these errors were encountered: