https://github.com/etkecc/go-fswatcher
https://github.com/etkecc/go-fswatcher
filesystem library
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/etkecc/go-fswatcher
- Owner: etkecc
- License: lgpl-3.0
- Created: 2024-08-08T19:01:45.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-12T08:29:37.000Z (over 1 year ago)
- Last Synced: 2025-01-23T13:14:00.350Z (over 1 year ago)
- Topics: filesystem, library
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# fswatcher
A handy wrapper around [fsnotify](https://github.com/fsnotify/fsnotify) with deduplication
```go
watcher := fswatcher.New([]string{"/tmp/your-file.txt"}, 0)
defer watcher.Stop()
go watcher.Start(func(e fsnotify.Event){
// do something with event
})
```