-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
fs.watch should throw an exception if recursive is not supported #29901
Labels
fs
Issues and PRs related to the fs subsystem / file system.
Comments
Seems reasonable to me. |
Okay, I believe I should wait for more approvals? |
@exx8 feel free to open a PR with the necessary changes. Such changes are rarely discussed in depth beforehand and the PR itself should be sufficient. |
4 tasks
exx8
pushed a commit
to exx8/node
that referenced
this issue
Oct 12, 2019
this pull request makes fs.watch throw exception, whenever it is used in an incompatible platform. for this change following changes were made to api: 1.a new error type has been introduced. 2.fs.watch has been changed accordingly. Users who use recursive on non-windows and osx platforms, will face a new exception. for this reason, it's a breaking change. Fixes: nodejs#29901
Fishrock123
added
the
fs
Issues and PRs related to the fs subsystem / file system.
label
Oct 14, 2019
Trott
pushed a commit
to exx8/node
that referenced
this issue
Jan 24, 2020
this pull request makes fs.watch throw exception, whenever it is used in an incompatible platform. for this change following changes were made to api: 1.a new error type has been introduced. 2.fs.watch has been changed accordingly. Users who use recursive on non-windows and osx platforms, will face a new exception. for this reason, it's a breaking change. Fixes: nodejs#29901
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
end
event if there is no underlying data #65-Ubuntu SMP Thu Sep 12 20:31:55 UTC 2019 x86_64 x86_64 x86_64 GNU/LinuxIt has been discussed in the past, that recursion watch is not implementable with good performances in Linux . And it is actually documented, But currently, the fs.watch just ignores this option without signalling the user that the recursive has been ignored. I truly believe that an exception should be thrown if recursive is ignored, as it might cause unexpected bugs while cross-platforming an app or a script, And probably most users wouldn't imagine that such incapability exists, and probably won't look it up.
Of course, this is a breaking change.
The text was updated successfully, but these errors were encountered: