Closed eta-orionis closed 1 year ago
On Ubunutu, and presumably other Linuxes, fswatch triggers even for directory accesses, resulting in an infinite loop (https://github.com/pestphp/pest-plugin-watch/issues/7#issuecomment-894317561).
This change filters fswatch events to only those when a file/dir is created, removed, or added.
Can confirm that this solve the issue in Ubuntu 22.04.
It is a bit slow detecting changes, but that should be a fswatch issue.
Appears to work as expected in Ubuntu on WSL. Thanks!
On Ubunutu, and presumably other Linuxes, fswatch triggers even for directory accesses, resulting in an infinite loop (https://github.com/pestphp/pest-plugin-watch/issues/7#issuecomment-894317561).
This change filters fswatch events to only those when a file/dir is created, removed, or added.