Skip to main content

write_file

Function write_file 

Source
pub fn write_file(
    path: &Path,
    contents: &[u8],
    target: WriteTarget,
) -> Result<(), WriteFailure>
Expand description

Write contents to path through create_file.

ยงErrors

Returns the errors of create_file, and a write or flush error as WriteFailure::File.