-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Conversation
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.
Thanks for this
A couple comments, but it's close to mergeable.
Needs:
- A test that calls the
path
getter on arecursive: 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 onrecursive: false
fs.promises.readdir
- A test that calls the
path
getter onrecursive: true
readdirSync
which checks that the path matches the output of node (or at least a fixture of some kind)
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.
A couple comments
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.
1 comment
Thank you |
Closes #7358