Skip to main content

write_bytes

Function write_bytes 

Source
pub async fn write_bytes<P: AsRef<Path>>(
    path: P,
    data: &[u8],
) -> Result<(), String>
Expand description

Write bytes to a file (async), creating parent directories if needed.