Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/farmergreg/rfsnotify

recursive directory notifications for fsnotify (golang)
https://github.com/farmergreg/rfsnotify

Last synced: about 2 months ago
JSON representation

recursive directory notifications for fsnotify (golang)

Awesome Lists containing this project

README

        

# rfsnotify v0.1.0
recursive directory notifications built as a wrapper around fsnotify (golang)

[![GoDoc](https://godoc.org/github.com/dietsche/rfsnotify?status.svg)](https://godoc.org/github.com/dietsche/rfsnotify)

This is a thin wrapper around https://github.com/fsnotify/fsnotify instead of only monitoring a top level folder,
it allows you to monitor all folders underneath the folder you specify.

Example:
--------
(error handling omitted to improve readability)
```
import "github.com/dietsche/rfsnotify"

//rfsnotify works exactly like fsnotify and implements the same API.
watcher, err := rfsnotify.NewWatcher()

//rfsnotify adds two new API entry points:
watcher.AddRecursive("/tmp/")
watcher.RemoveRecursive("/tmp/")
```