backend_other.go

 1//go:build appengine || (!darwin && !dragonfly && !freebsd && !openbsd && !linux && !netbsd && !solaris && !windows)
 2
 3package fsnotify
 4
 5import "errors"
 6
 7type other struct {
 8	Events chan Event
 9	Errors chan error
10}
11
12func newBackend(ev chan Event, errs chan error) (backend, error) {
13	return nil, errors.New("fsnotify not supported on the current platform")
14}
15func newBufferedBackend(sz uint, ev chan Event, errs chan error) (backend, error) {
16	return newBackend(ev, errs)
17}
18func (w *other) Close() error                              { return nil }
19func (w *other) WatchList() []string                       { return nil }
20func (w *other) Add(name string) error                     { return nil }
21func (w *other) AddWith(name string, opts ...addOpt) error { return nil }
22func (w *other) Remove(name string) error                  { return nil }
23func (w *other) xSupports(op Op) bool                      { return false }