Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node fs native recursive on Linux #1294

Open
JYone3A opened this issue Dec 1, 2023 · 1 comment
Open

Node fs native recursive on Linux #1294

JYone3A opened this issue Dec 1, 2023 · 1 comment

Comments

@JYone3A
Copy link

JYone3A commented Dec 1, 2023

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
Copy link
Owner

we did not upgrade to recursive fs.watch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants