modulepackage
0.0.0-20240825142021-55bd5f2910f6
Repository: https://github.com/farmergreg/rfsnotify.git
Documentation: pkg.go.dev
# README
rfsnotify v0.1.0
recursive directory notifications built as a wrapper around fsnotify (golang)
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/")
# Functions
NewWatcher establishes a new watcher with the underlying OS and begins waiting for events.