Skip to content

Commit

Permalink
Handle (ignore) CLOSE events
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Nov 19, 2024
1 parent 8a09d0c commit a02b8d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/storage/fs/posix/tree/inotifywatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ func (iw *InotifyWatcher) Watch(path string) {
err = iw.tree.Scan(event.Filename, ActionCreate, event.IsDir)
case inotifywaitgo.CLOSE_WRITE:
err = iw.tree.Scan(event.Filename, ActionUpdate, event.IsDir)
case inotifywaitgo.CLOSE:
// ignore, already handled by CLOSE_WRITE
default:
iw.log.Warn().Interface("event", event).Msg("unhandled event")
return
Expand Down

0 comments on commit a02b8d5

Please sign in to comment.