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

lib: fix fs.readdir recursive async #56041

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RafaelGSS
Copy link
Member

@RafaelGSS RafaelGSS commented Nov 27, 2024

@nodejs-github-bot nodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels Nov 27, 2024
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

Attention: Patch coverage is 93.38843% with 8 lines in your changes missing coverage. Please review.

Project coverage is 87.95%. Comparing base (ce346b6) to head (982a50e).
Report is 26 commits behind head on main.

Files with missing lines Patch % Lines
lib/fs.js 93.38% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #56041      +/-   ##
==========================================
- Coverage   88.00%   87.95%   -0.06%     
==========================================
  Files         653      656       +3     
  Lines      188093   188454     +361     
  Branches    35942    35990      +48     
==========================================
+ Hits       165537   165758     +221     
- Misses      15734    15860     +126     
- Partials     6822     6836      +14     
Files with missing lines Coverage Δ
lib/fs.js 93.27% <93.38%> (-0.08%) ⬇️

... and 40 files with indirect coverage changes

@RafaelGSS RafaelGSS added the request-ci Add this label to start a Jenkins CI on a PR. label Nov 27, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Nov 27, 2024
@nodejs-github-bot
Copy link
Collaborator

}
}

function handleDirents({ result, currentPath, context }) {
Copy link
Member

Choose a reason for hiding this comment

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

Would you mind adding jsdoc to all newly/updated functions?

Copy link
Member Author

@RafaelGSS RafaelGSS Nov 28, 2024

Choose a reason for hiding this comment

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

I haven't added jsdoc to these ones because they are not public, they are used inside readdirRecursive (which has JSDoc). It seems a pattern on this file.

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@@ -1369,6 +1369,109 @@ function mkdirSync(path, options) {
}
}

/*
* An recurssive algorithm for reading the entire contents of the `basePath` directory.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* An recurssive algorithm for reading the entire contents of the `basePath` directory.
* An recursive algorithm for reading the entire contents of the `basePath` directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fs.readdir(path, { recursive: true }) is sync
4 participants