summaryrefslogtreecommitdiff
path: root/vendor/github.com/fsnotify/fsnotify/backend_other.go
blob: 5eb5dbc66f264b5ec9b92d6e960ebedde1cbf79f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//go:build appengine || (!darwin && !dragonfly && !freebsd && !openbsd && !linux && !netbsd && !solaris && !windows)

package fsnotify

import "errors"

type other struct {
	Events chan Event
	Errors chan error
}

func newBackend(ev chan Event, errs chan error) (backend, error) {
	return nil, errors.New("fsnotify not supported on the current platform")
}
func newBufferedBackend(sz uint, ev chan Event, errs chan error) (backend, error) {
	return newBackend(ev, errs)
}
func (w *other) Close() error                              { return nil }
func (w *other) WatchList() []string                       { return nil }
func (w *other) Add(name string) error                     { return nil }
func (w *other) AddWith(name string, opts ...addOpt) error { return nil }
func (w *other) Remove(name string) error                  { return nil }
func (w *other) xSupports(op Op) bool                      { return false }