You can see its due to the Create flag being stripped from the event.
I suspect the logic of strip() (watcher_fsevents.go) should handle rename events (as create/delete), however since in rename we don't easily know which "side" of the event we handle, I don't see an immediate fix.
For example in the following action flow on Mac OSX 12.0.1
We do not get notified of the second create of the file. Logs:
You can see its due to the
Create
flag being stripped from the event.I suspect the logic of
strip()
(watcher_fsevents.go
) should handle rename events (as create/delete), however since in rename we don't easily know which "side" of the event we handle, I don't see an immediate fix.