Skip to main content

write_bytes

Function write_bytes 

Source
pub fn write_bytes(path: &str, data: &[u8]) -> OpticResult<()>
Expand description

Write raw bytes to a file, creating parent directories if needed.

ยงErrors

Returns OpticErrorKind::File if the directory cannot be created or the file cannot be written.