Delete event occurs after create event #17962
Labels
area-library
library-io
os-osx
P2
A bug or feature request we're likely to work on
triaged
Issue has been triaged by sub team
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
On Mac, I'm observing behavior where new Directory(...).watch() sends events in a weird order.
Basically, I see this when I revert a file in git:
{"modify":[".../cache.dart"]}
{"create":[".../cache.dart"]}
{"modify":[".../cache.dart"]}
{"delete":[".../cache.dart"]}
I think what happens is that two events occur when a file is overwritten, create a new inode, and delete the old inode.
The text was updated successfully, but these errors were encountered: