Skip to main content

write

Function write 

Source
pub fn write(
    dir: &Path,
    filename: &str,
    content: &str,
    quiet: bool,
    label: &str,
)
Expand description

Write content to <dir>/<filename>, creating dir if needed.

Idempotent: overwrites any existing file. The trailing newline is normalised so re-runs with identical content produce identical bytes.