Skip to content

etkecc/go-fswatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fswatcher

A handy wrapper around fsnotify with deduplication

watcher := fswatcher.New([]string{"/tmp/your-file.txt"}, 0)
defer watcher.Stop()
go watcher.Start(func(e fsnotify.Event){
	// do something with event
})