1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
13 // Watcher watches a set of files, delivering events to a channel.
19 // NewWatcher establishes a new watcher with the underlying OS and begins waiting for events.
20 func NewWatcher() (*Watcher, error) {
21 return nil, errors.New("FEN based watcher not yet supported for fsnotify\n")
24 // Close removes all watches and closes the events channel.
25 func (w *Watcher) Close() error {
29 // Add starts watching the named file or directory (non-recursively).
30 func (w *Watcher) Add(name string) error {
34 // Remove stops watching the the named file or directory (non-recursively).
35 func (w *Watcher) Remove(name string) error {