Skip to content

fs: introduce dirent.parentPath#50976

Merged
nodejs-github-bot merged 2 commits intonodejs:mainfrom
aduh95:dirent-dirname
Dec 2, 2023
Merged

fs: introduce dirent.parentPath#50976
nodejs-github-bot merged 2 commits intonodejs:mainfrom
aduh95:dirent-dirname

Conversation

@aduh95
Copy link
Copy Markdown
Contributor

@aduh95 aduh95 commented Nov 30, 2023

The goal is to replace dirent.path using a name that's less likely to create confusion. The value of dirent.path used to be "the path to the file corresponding to the Dirent", and is not "the path to the parent directory". IMO the name doesn't reflect that, using dirname would be a better fit.

If this PR is accepted, I'll close #50838 and open another PR to deprecate dirent.path.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. experimental Issues and PRs related to experimental features. fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. semver-minor PRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants