Registry / utility / sigma-go-inotify

sigma-go-inotify

JSON →
library0.0.0-20181102212354-c87b6cf5033dgogounverified

Package inotify implements a wrapper for the Linux inotify system for monitoring file system events.

go get github.com/sigma/go-inotify
INSTALL
IMPORT
SIG · SIGMA-GO-INOTIFY
S
sigma-go-inotify
utilitygov0.0.0-20181102212354-c87b6cf5033d
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

inotify
github.com/sigma/go-inotify

Watch a directory for file creation events using inotify.

package main import ( "log" "github.com/sigma/go-inotify" ) func main() { watcher, err := inotify.NewWatcher() if err != nil { log.Fatal(err) } defer watcher.Close() err = watcher.Watch("/tmp", inotify.IN_CREATE) if err != nil { log.Fatal(err) } for { select { case ev := <-watcher.Event: log.Println("event:", ev) case err := <-watcher.Error: log.Println("error:", err) } } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20181102212354-c87b6cf5033dlatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
sigma-go-inotify — go get sigma-go-inotify · libregistry