paulmillr / chokidar

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

fix: consider atime == mtime to be a non-change #1335

Closed 43081j closed 2 months ago

43081j commented 4 months ago

Changes the file listener to treat atime === mtime as a non-change.

Currently, if these are equal, we fire a CHANGE event which causes bugs on windows (as windows emits two change events when you first write).

43081j commented 4 months ago

nevermind, looks like it breaks ubuntu now and fixes windows... 🤦‍♂️

a problem for another day

43081j commented 4 months ago

saw you merged the v4 branch @paulmillr , awesome 🎉

ill try pick this one up tomorrow. if we can fix this bug we're pretty much ready to go i think

i could do with help on it though, especially given ill be out travelling from weds so my time will drop for a bit