Update gitignore and notify only on create (write was being spammed)

This commit is contained in:
Dave
2024-08-31 12:56:07 +02:00
committed by PhatPhuckDave
parent 77283822fd
commit ee4003f4f1
3 changed files with 11 additions and 2 deletions

View File

@@ -23,7 +23,9 @@ func WatchRecursively(root string, changeHandler func(fsnotify.Event)) error {
if !ok {
return
}
changeHandler(event)
if fsnotify.Create == event.Op {
changeHandler(event)
}
case err, ok := <-watcher.Errors:
if !ok {
return