Skip to content
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

Clarify permissions guarantees in in Builder #313

Open
n0toose opened this issue Nov 18, 2024 · 1 comment
Open

Clarify permissions guarantees in in Builder #313

n0toose opened this issue Nov 18, 2024 · 1 comment

Comments

@n0toose
Copy link
Contributor

n0toose commented Nov 18, 2024

The documentation currently shows an example of the Unix-only permissions function being used in combination with the Builder, but the documentation reads like the user is supposed to also check whether the permissions were set correctly in the resulting folder: https://docs.rs/tempfile/latest/tempfile/struct.Builder.html#method.permissions

  • Is it safe to assume that the directory / file will be created using the permissions that were explicitly stated to do so?
  • If not, should Builder also take on the responsibility of checking the resulting file / directory before returning it to the user? Should this be explicitly documented?
  • If yes, should this be explicitly documented?
@Stebalien
Copy link
Owner

Stebalien commented Nov 18, 2024 via email

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

No branches or pull requests

2 participants