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
The number of directories you need to delete to in order to provoke the bug is timing dependent: the relevant difference is that we get more than one even in the event buffer in InotifyEventLoop#work(). You can provoke this by putting a breakpoint in the loop reading the evnents in InotifyEventLoop#work(), for example on line 131.
I believe the problem stems from the fact that the renameEnd block uses renameEvent.isDirectory to determine that this is an event that describes the delete of a watched directory. However, what we should be looking at is the isDirectoryRemoval flag instead, as it's done in the remove block.
This is a linux-only problem. Here's how to reproduce:
the program expects as a paremeter with a large (> 1000) number of directories. A
node_modules
folder of a complex project makes for good test data.The text was updated successfully, but these errors were encountered: