An open API service indexing awesome lists of open source software.

https://github.com/etkecc/go-fswatcher


https://github.com/etkecc/go-fswatcher

filesystem library

Last synced: over 1 year ago
JSON representation

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
})
```