You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We experience a very similar problem, but with folder deletion. We use chokidar like this:
chokidar.watch(['src/foo/**/file.json','src/bar/**/file.json'],{useFsEvents: false,// <-- THIS SOLVES THE PROBLEMignoreInitial: true,}).on('all',(eventName,path)=>console.log({eventName, path}))
When we delete foo or bar folders, neither unlink nor unlinkDir are emitted. The reason for that seems to be this line:
Describe the bug
When a folder is renamed and the original and new folder is part of a path that is covered by a glob that chokidar is watching, no events are fired.
Versions:
To Reproduce:
./hello/foo/file.txt
mv ./hello/foo ./hello/bar
Expected behavior
an
unlink
andadd
event is fired for the rename. (This does happen when usingusePolling
)The text was updated successfully, but these errors were encountered: