https://github.com/farmergreg/rfsnotify
recursive directory notifications for fsnotify (golang)
https://github.com/farmergreg/rfsnotify
Last synced: 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 10 years ago)
- Default Branch: master
- Last Pushed: 2024-08-25T14:20:25.000Z (11 months ago)
- Last Synced: 2025-05-09T00:09:09.587Z (2 months ago)
- Language: Go
- Homepage: https://www.gregd.org/
- Size: 8.79 KB
- Stars: 42
- Watchers: 3
- Forks: 14
- 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)[](https://godoc.org/github.com/farmergreg/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/farmergreg/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/")
```