Skip to main content

write_file_private

Function write_file_private 

Source
fn write_file_private(path: &Path, data: &[u8]) -> Result<()>
Expand description

Write data to path, owner-only on unix (legacy writes 0o600).

The mode applies at creation only, so an existing file keeps whatever permissions it already has — this never widens them.