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.