equal
deleted
inserted
replaced
|
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 |
|
5 // +build solaris |
|
6 |
|
7 package fsnotify |
|
8 |
|
9 import ( |
|
10 "errors" |
|
11 ) |
|
12 |
|
13 // Watcher watches a set of files, delivering events to a channel. |
|
14 type Watcher struct { |
|
15 Events chan Event |
|
16 Errors chan error |
|
17 } |
|
18 |
|
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") |
|
22 } |
|
23 |
|
24 // Close removes all watches and closes the events channel. |
|
25 func (w *Watcher) Close() error { |
|
26 return nil |
|
27 } |
|
28 |
|
29 // Add starts watching the named file or directory (non-recursively). |
|
30 func (w *Watcher) Add(name string) error { |
|
31 return nil |
|
32 } |
|
33 |
|
34 // Remove stops watching the the named file or directory (non-recursively). |
|
35 func (w *Watcher) Remove(name string) error { |
|
36 return nil |
|
37 } |