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

fix: support recursive readdir in Asar files #41582

Merged
merged 1 commit into from Mar 19, 2024
Merged

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Mar 13, 2024

Description of Change

Closes #41549.
Refs nodejs/node#41439.

Adds missing support for the recursive option in fs.{readdir|readdirSync} as well as fs.promises.{readdir|readdirSync} in our fs Asar wrappers.

As of now, one cannot pass both withFileTypes and recursive - I plan to add that in a follow-up.

Checklist

Release Notes

Notes: Added missing support for the recursive option in fs.{readdir|readdirSync} as well as fs.promises.{readdir|readdirSync}.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/29-x-y PR should also be added to the "29-x-y" branch. target/30-x-y PR should also be added to the "30-x-y" branch. labels Mar 13, 2024
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Mar 13, 2024
@codebytere codebytere changed the title feat: support recursive readdir in Asar files fix: support recursive readdir in Asar files Mar 13, 2024
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Mar 14, 2024
@codebytere codebytere merged commit b029188 into main Mar 19, 2024
16 of 17 checks passed
@codebytere codebytere deleted the readdir-in-asar branch March 19, 2024 10:10
Copy link

release-clerk bot commented Mar 19, 2024

Release Notes Persisted

Added missing support for the recursive option in fs.{readdir|readdirSync} as well as fs.promises.{readdir|readdirSync}.

@trop
Copy link
Contributor

trop bot commented Mar 19, 2024

I have automatically backported this PR to "30-x-y", please check out #41625

@trop trop bot added in-flight/30-x-y and removed target/30-x-y PR should also be added to the "30-x-y" branch. labels Mar 19, 2024
@trop
Copy link
Contributor

trop bot commented Mar 19, 2024

I have automatically backported this PR to "29-x-y", please check out #41626

@trop trop bot added in-flight/29-x-y and removed target/29-x-y PR should also be added to the "29-x-y" branch. labels Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Node.js fs.readdir new param recursive caused bug
2 participants