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 readdir recursive issue by switching to glob #36

Merged
merged 2 commits into from
Nov 8, 2024
Merged

Conversation

mvirgil
Copy link
Contributor

@mvirgil mvirgil commented Nov 4, 2024

dirent.path was unexpectedly set to 'undefined', causing errors when passing undefined to path.join

Noticed errors locally when I was using Node v20.8.1, but they were not happening with v20.18.0

This bug should be fixed in later versions of v18 and v20, but switching to glob will make this easier to handle.

May refactor the calling code later (i.e. remove the util method, invoke glob directly), but simply replacing the implementation of the current util method is easiest.

See also:
nodejs/node#48858
nodejs/node#51773

@mvirgil mvirgil marked this pull request as ready for review November 6, 2024 17:07
@mvirgil mvirgil requested review from a team as code owners November 6, 2024 17:07
@mvirgil mvirgil merged commit 27fa7b1 into main Nov 8, 2024
2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 8, 2024
@mvirgil mvirgil deleted the fix-readdir-bug branch November 12, 2024 19:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants