Registry / utility / fsnotify-v1

fsnotify-v1

JSON →
library1.4.7gogounverified

Package fsnotify provides a platform-independent interface for file system notifications.

go get gopkg.in/fsnotify.v1
INSTALL
IMPORT
SIG · FSNOTIFY-V1
F
fsnotify-v1
utilitygov1.4.7
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.

fsnotify
gopkg.in/fsnotify.v1

Watch a directory for file system events.

package main import ( "log" "gopkg.in/fsnotify.v1" ) func main() { watcher, _ := fsnotify.NewWatcher() defer watcher.Close() watcher.Add("/tmp") for { select { case event := <-watcher.Events: log.Println(event) } } }
Debug
Known issues
breakingv1 is deprecated; use github.com/fsnotify/fsnotify (v1.8+) for new projects.
fix
Replace import with github.com/fsnotify/fsnotify and update API usage.
affects: >=1.0.0
Upgrade
Version history
1.4.7latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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