We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b7dac3 commit f0f7df6Copy full SHA for f0f7df6
src/macos/FSEventsBackend.cc
@@ -137,7 +137,7 @@ void FSEventsCallback(
137
// If multiple flags were set, then we need to call `stat` to determine if the file really exists.
138
// This helps disambiguate creates, updates, and deletes.
139
struct stat file;
140
- if (!pathExists(paths[i]) || stat(paths[i], &file)) {
+ if (stat(paths[i], &file) || !pathExists(paths[i])) {
141
// File does not exist, so we have to assume it was removed. This is not exact since the
142
// flags set by fsevents get coalesced together (e.g. created & deleted), so there is no way to
143
// know whether the create and delete both happened since our snapshot (in which case
0 commit comments