vendor/github.com/fsnotify/fsnotify/fen.go
changeset 265 05c40b36d3b2
parent 264 8f478162d991
child 266 80973a656b81
equal deleted inserted replaced
264:8f478162d991 265:05c40b36d3b2
     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 //go:build solaris
       
     6 // +build solaris
       
     7 
       
     8 package fsnotify
       
     9 
       
    10 import (
       
    11 	"errors"
       
    12 )
       
    13 
       
    14 // Watcher watches a set of files, delivering events to a channel.
       
    15 type Watcher struct {
       
    16 	Events chan Event
       
    17 	Errors chan error
       
    18 }
       
    19 
       
    20 // NewWatcher establishes a new watcher with the underlying OS and begins waiting for events.
       
    21 func NewWatcher() (*Watcher, error) {
       
    22 	return nil, errors.New("FEN based watcher not yet supported for fsnotify\n")
       
    23 }
       
    24 
       
    25 // Close removes all watches and closes the events channel.
       
    26 func (w *Watcher) Close() error {
       
    27 	return nil
       
    28 }
       
    29 
       
    30 // Add starts watching the named file or directory (non-recursively).
       
    31 func (w *Watcher) Add(name string) error {
       
    32 	return nil
       
    33 }
       
    34 
       
    35 // Remove stops watching the the named file or directory (non-recursively).
       
    36 func (w *Watcher) Remove(name string) error {
       
    37 	return nil
       
    38 }