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

node:fs: add Dirent.path and .parentPath fields #11135

Merged
merged 21 commits into from
May 21, 2024
Merged

Conversation

nektro
Copy link
Contributor

@nektro nektro commented May 17, 2024

Closes #7358

Copy link
Collaborator

@Jarred-Sumner Jarred-Sumner left a comment

Choose a reason for hiding this comment

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

Thanks for this

A couple comments, but it's close to mergeable.

Needs:

  • A test that calls the path getter on a recursive: true fs.promises.readdir about 200 times so if there are race conditions/incorrect memory handling when used concurrently it will crash
  • A test that calls the path getter on recursive: false fs.promises.readdir
  • A test that calls the path getter on recursive: true readdirSync which checks that the path matches the output of node (or at least a fixture of some kind)

Copy link

github-actions bot commented May 17, 2024

@nektro, your commit has failing tests :(

💪 4 failing tests Darwin AARCH64

💻 4 failing tests Darwin x64

🐧🖥 1 failing tests Linux x64

🪟💻 16 failing tests Windows x64 baseline

🪟💻 13 failing tests Windows x64

View logs

@nektro nektro requested a review from Jarred-Sumner May 18, 2024 06:25
Copy link
Collaborator

@Jarred-Sumner Jarred-Sumner left a comment

Choose a reason for hiding this comment

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

A couple comments

Copy link
Collaborator

@Jarred-Sumner Jarred-Sumner left a comment

Choose a reason for hiding this comment

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

1 comment

@nektro nektro requested a review from Jarred-Sumner May 21, 2024 01:57
@Jarred-Sumner Jarred-Sumner merged commit 396dc78 into main May 21, 2024
46 of 52 checks passed
@Jarred-Sumner Jarred-Sumner deleted the nektro-patch-45896 branch May 21, 2024 18:24
@Jarred-Sumner
Copy link
Collaborator

Thank you

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.

Node compat: fs.Dirent does not have path member
3 participants