-
Notifications
You must be signed in to change notification settings - Fork 737
feat(filesystem): add stub for chmod to filesystem wrapper #5647
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
Conversation
|
This pull request implements a feature or fix, so it must include a changelog entry. See CONTRIBUTING.md#changelog for instructions. |
|
/retryBuilds |
|
|
||
| it('sets permission of the file to read/write owner', async function () { | ||
| if (!globals.isWeb && os.platform() !== 'win32') { | ||
| const result = await stat(keyPair.getPrivateKeyPath()) |
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.
Oh I guess we will need fs.stat(), later...
justinmk3
left a comment
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! Are there any existing usages we can replace too?
justinmk3
left a comment
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.
LGTM let's merge it!
Problem
Changing the permissions of a file is currently not supported by the file system wrapper.
Solution
Implement a stub chmod that does nothing on web, and uses
fsto modify permissions in non-web environments.License: I confirm that my contribution is made under the terms of the Apache 2.0 license.