-
Notifications
You must be signed in to change notification settings - Fork 154
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
BUG: fs.readdir fails when passing options #775
Comments
Nice find. We sort of have code to do this already in the shell, but it could be ported into the implementation for when Lines 205 to 280 in 75f2a70
|
Happy to update PR #778 to include the required changes but may not have time until next weekend. Looks like node supports encoding and withFileTypes options but not recursive for readdir. Do you want to implement it with support for recursive anyway? |
Ah, you're right. If node doesn't, let's not do it either, and leave |
@humphd added a skip as you suggested here. I'll make a new PR for the fixes if you want to merge #778 |
The following code:
Throws the error:
Error: Uncaught TypeError: callback is not a function (http://localhost:1234/tests.e31bb0bc.js:17740) at commonjsGlobal.onerror (mocha.947ba722.js:32655:12)
According to the node documentation, fs.readdir and fs.promises.readdir should optionally accept an options object.
The text was updated successfully, but these errors were encountered: