paulmillr / chokidar

Minimal and efficient cross-platform file watching library

Home Page:https://paulmillr.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node fs native recursive on Linux

JYone3A opened this issue · 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?

we did not upgrade to recursive fs.watch.