-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
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
|
} | ||
} | ||
|
||
function handleDirents({ result, currentPath, context }) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
@@ -1369,6 +1369,109 @@ function mkdirSync(path, options) { | |||
} | |||
} | |||
|
|||
/* | |||
* An recurssive algorithm for reading the entire contents of the `basePath` directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* An recurssive algorithm for reading the entire contents of the `basePath` directory. | |
* An recursive algorithm for reading the entire contents of the `basePath` directory. |
Fixes: #56006
cc: @aduh95 @Ethan-Arrowood