Skip to content

fix(ext/node): add lchmod, lchmod promise, lchmodSync to node:fs #29833

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

Merged
merged 3 commits into from
Jun 26, 2025

Conversation

Tango992
Copy link
Contributor

@Tango992 Tango992 commented Jun 21, 2025

This PR adds the implementation for the following node:fs methods: lchmod, lchmod promise, and lchmodSync.

It aligns with the Node.js behavior where other than macOS, lchmod and lchmodSync are exported as undefined, while the promise based lchmod throws ERR_NOT_IMPLEMENTED.

It enables these test files:

  • parallel/test-fs-lchmod.js.
  • Previously commented out test cases on parallel/test-fs-chmod-mask.js.

Towards #27664 , #26020 .

@Tango992
Copy link
Contributor Author

Tango992 commented Jun 22, 2025

I see that there are issues to track the tests of node:stream, node:assert, etc., but none for node:fs. May I create one? Or just wait for the core contributors to create it?

Tango992 and others added 2 commits June 22, 2025 21:45
Also adds `getValidatedPathToString` util function.
Signed-off-by: Yoshiya Hinosawa <stibium121@gmail.com>
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

LGTM. Nice!

@kt3k
Copy link
Member

kt3k commented Jun 26, 2025

I see that there are issues to track the tests of #29802, #29801, etc., but none for node:fs. May I create one?

Yes, please

@kt3k kt3k mentioned this pull request Jun 19, 2025
9 tasks
@kt3k kt3k merged commit 9bcd436 into denoland:main Jun 26, 2025
18 checks passed
@Tango992 Tango992 deleted the add-node-fs-lchmod-lchmodsync branch June 26, 2025 08:27
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.

2 participants