paulmillr / chokidar

Minimal and efficient cross-platform file watching library
https://paulmillr.com
MIT License
10.86k stars 575 forks source link

Update FsEventsHandler.handleEvent #1254

Closed clee closed 2 days ago

clee commented 1 year ago

Allows unlink/unlinkDir events to actually be emitted as expected on macOS.

The previous logic made it so that the call to this.fsw._emit(eventName, path); was only ever reachable if the event.type was not EV_UNLINK.