mdbook::utils::fs

Function write_file

Source
pub fn write_file<P: AsRef<Path>>(
    build_dir: &Path,
    filename: P,
    content: &[u8],
) -> Result<()>
Expand description

Write the given data to a file, creating it first if necessary