Skip to content

Clarify permissions guarantees in in Builder #313

@n0toose

Description

@n0toose

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions