chokidar icon indicating copy to clipboard operation
chokidar copied to clipboard

Node fs native recursive on Linux

Open JYone3A opened this issue 1 year ago • 1 comments

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?

JYone3A avatar Dec 01 '23 14:12 JYone3A

we did not upgrade to recursive fs.watch.

paulmillr avatar Dec 01 '23 17:12 paulmillr