Registry / utility / fsnotify-fsevents

fsnotify-fsevents

JSON →
library0.2.0gogounverified

Package fsevents provides file system notifications on macOS.

go get github.com/fsnotify/fsevents
INSTALL
IMPORT
SIG · FSNOTIFY-FSEVENTS
F
fsnotify-fsevents
utilitygov0.2.0
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.

fsevents
github.com/fsnotify/fsevents

Watch file events on macOS

package main import ( "log" "github.com/fsnotify/fsevents" ) func main() { dev, err := fsevents.DeviceForPath("/tmp") if err != nil { log.Fatal(err) } es := &fsevents.EventStream{ Paths: []string{"/tmp"}, Latency: 500, Device: dev, Flags: fsevents.FileEvents, } es.Start() event := <-es.Events log.Printf("Event: %+v", event) }
Debug
Known issues
gotchaOnly works on macOS (Darwin)
fix
Use platform-specific build tags or check runtime.GOOS
affects: >=0.1.0
Upgrade
Version history
0.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
fsnotify-fsevents — go get fsnotify-fsevents · libregistry