Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows: expose support for recursive directory watches #339

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions fen.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ func NewWatcher() (*Watcher, error) {
return nil, errors.New("FEN based watcher not yet supported for fsnotify\n")
}

// SetRecursive makes future Add() calls watch directories recursively
// if this file system supports that.
// Must be called before Add/Remove.
func (w *Watcher) SetRecursive() error {
return errors.New("Not supported")
}

// Close removes all watches and closes the events channel.
func (w *Watcher) Close() error {
return nil
Expand Down
7 changes: 7 additions & 0 deletions inotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ func (w *Watcher) isClosed() bool {
}
}

// SetRecursive makes future Add() calls watch directories recursively
// if this file system supports that.
// Must be called before Add/Remove.
func (w *Watcher) SetRecursive() error {
return errors.New("Not supported")
}

// Close removes all watches and closes the events channel.
func (w *Watcher) Close() error {
if w.isClosed() {
Expand Down