-
Notifications
You must be signed in to change notification settings - Fork 57
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
feat: unified osutil.Mkdir API with options #418
feat: unified osutil.Mkdir API with options #418
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.
This is a good start, thanks.
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.
Just a few further comments.
Manual test results:
|
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.
Looking good now, and thanks for the manual tests + table.
Implement a unified
osutil.Mkdir
API, refactor existingosutil.MkdirChown
andosutil.MkdirAllChown
.Closes #372.
Background
There is an issue (372) where umask settings would affect the permissions of the newly created directories.
There was originally a PR to implement the feature (see here), but the code became even more complicated. As per our discussion (see here), we decide to refactor Mkdir and implement the required feature.
The original PR was closed, using this one instead. This PR only refactors the existing code, the support for chmod will come in a separate PR.
Spec
See here.
API
Options
Manual Tests