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

add missing fs.readdir encoding option #84

Closed
wants to merge 2 commits into from

Conversation

digital-flowers
Copy link

fs.readdir has optional option called encoding:
https://nodejs.org/api/fs.html#fs_fs_readdir_path_options_callback

@isaacs
Copy link
Owner

isaacs commented Sep 27, 2016

Fails tests.

I thikn it's supposed to accept an object with an 'encoding' property, not an encoding string.

missing encoding argument for readdir function
Copy link
Author

@digital-flowers digital-flowers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there was a missing parameter for the function readdir

@digital-flowers
Copy link
Author

readdir accept object or string but the issue in the previous patch was because of a missing argument, sorry it was an undo before commit by mistake

isaacs added a commit that referenced this pull request Sep 27, 2016
@isaacs
Copy link
Owner

isaacs commented Sep 27, 2016

Adding the param arbitrarily breaks older versions that did not take this parameter.

Different approach in #93 that is agnostic about the existence of the parameter and its type.

Can you check to see if that meets your needs?

@digital-flowers
Copy link
Author

ok i understand btw thanks for this module :)

@digital-flowers
Copy link
Author

i think you can close this request

isaacs added a commit that referenced this pull request Sep 28, 2016
@isaacs isaacs closed this in #93 Sep 28, 2016
iarna added a commit to npm/npm that referenced this pull request Oct 7, 2016
Make `fs.Stats` `.uid` and `.gid` fields always be unsigned.

Pass through optional arguments to `fs.readdir`. Previously they were dropped.

Fixes: #13918
Fixes: isaacs/node-graceful-fs#84
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

Successfully merging this pull request may close these issues.

None yet

2 participants