Skip to main content

ensure_secret_file

Function ensure_secret_file 

Source
pub fn ensure_secret_file(path: &Path) -> Result<()>
Expand description

Ensure a sensitive append-only file exists with mode 0600 set at creation time. Subsequent appends inherit the mode. No-op if the file already exists.