fen.go 935 B

12345678910111213141516171819202122232425262728293031323334353637
  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.
  4. // +build solaris
  5. package fsnotify
  6. import (
  7. "errors"
  8. )
  9. // Watcher watches a set of files, delivering events to a channel.
  10. type Watcher struct {
  11. Events chan Event
  12. Errors chan error
  13. }
  14. // NewWatcher establishes a new watcher with the underlying OS and begins waiting for events.
  15. func NewWatcher() (*Watcher, error) {
  16. return nil, errors.New("FEN based watcher not yet supported for fsnotify\n")
  17. }
  18. // Close removes all watches and closes the events channel.
  19. func (w *Watcher) Close() error {
  20. return nil
  21. }
  22. // Add starts watching the named file or directory (non-recursively).
  23. func (w *Watcher) Add(name string) error {
  24. return nil
  25. }
  26. // Remove stops watching the the named file or directory (non-recursively).
  27. func (w *Watcher) Remove(name string) error {
  28. return nil
  29. }