Skip to main content

atomic_write

Function atomic_write 

Source
fn atomic_write(
    path: &Path,
    bytes: &[u8],
    secret: bool,
) -> Result<(), AcmeError>
Expand description

Writes bytes to path atomically (temp file beside it, then rename). secret files get 0600 on unix before the rename.