-
Notifications
You must be signed in to change notification settings - Fork 247
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
Disable recursion under Linux #556
Comments
@sebbASF I don't think this is a feature of the underlying drivers like fs-event, is it? It's not too hard to skip over the changes you don't want in the callbacks, is it? |
It may not be hard, but why not allow this to be optionally done by the library? |
I was thinking to keep this gem uncomplicated. But if you want to propose an interface that allows that, please throw a proposal together. Also, just to confirm, it sounds like you agree that this isn't a feature of the underlying drivers like |
AIUI under Linux, the gem uses inotify via rb-inotify. The problem is that it does not appear to be possible to disable this setting. |
This is important because each additional directory monitored by inotify takes up system resources. |
Ok, that sounds like a good reason to allow recursion to be disabled. If we support that, we'll need to disable it on the other drivers too. How difficult does that seem? |
Does not seem possible to disable recursion under Linux.
It should be possible to watch a single directory, without any subdirectories.
The text was updated successfully, but these errors were encountered: