Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/farmergreg/rfsnotify
- Owner: farmergreg
- License: mit
- Created: 2015-01-11T03:00:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-08-26T06:40:41.000Z (about 2 years ago)
- Last Synced: 2024-07-18T01:52:51.478Z (2 months ago)
- Language: Go
- Homepage: https://www.gregd.org/
- Size: 9.77 KB
- Stars: 38
- Watchers: 3
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/")
```