paulmillr / chokidar

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

Node fs native recursive on Linux #1294

Closed JYone3A closed 2 months ago

JYone3A commented 9 months ago

Since a while, the fs module of node directly supports recursive also for Linux. How do you handle the case when the OS supports recursive?

For example, depth and ignored are not supported. Do you use the recursive fs.watch under Linux, and filter out the events coming in, or do you fall back to setting up watches manually for each file/directory? (I tried to figure out the code but did not have enough time yet)

I guess the former is quicker at initialization but uses up much more inotifywait listeners, right?

paulmillr commented 9 months ago

we did not upgrade to recursive fs.watch.