Skip to main content

create_owner_only_file

Function create_owner_only_file 

Source
fn create_owner_only_file(path: &Path) -> Result<File>
Expand description

Creates a file readable and writable only by the owner.

On Unix, this sets mode 0600 regardless of umask. On Windows, default ACLs already restrict access to the creating user, so no explicit hardening is needed.