You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not all operations are available on every platform. Windows doesn't have attrib, kqueue doesn't have create, etc.
I propose a method to determine the capabilities of the library. This would allow us to introduce more events that are not available on every platform, like Close: #22
Perhaps something like err := fsnotify.Capabilities(fsnotify.Create|fsnotify.Write)
Similarly, combined with event filtering in #7, NewWatcher would of course fail if an event is requested that it does not support: err := fsnotify.NewWatcher("/file/name", fsnotify.Create|fsnotify.Write)
The question then remains, is this filter mandatory? I think it should be.
The text was updated successfully, but these errors were encountered:
Not all operations are available on every platform. Windows doesn't have attrib, kqueue doesn't have create, etc.
I propose a method to determine the capabilities of the library. This would allow us to introduce more events that are not available on every platform, like Close: #22
Perhaps something like
err := fsnotify.Capabilities(fsnotify.Create|fsnotify.Write)
Similarly, combined with event filtering in #7, NewWatcher would of course fail if an event is requested that it does not support:
err := fsnotify.NewWatcher("/file/name", fsnotify.Create|fsnotify.Write)
The question then remains, is this filter mandatory? I think it should be.
The text was updated successfully, but these errors were encountered: