Skip to main content

write

Function write 

Source
pub fn write(path: &Path, bytes: impl AsRef<[u8]>) -> Result<()>
Expand description

Write bytes to path (like std::fs::write), creating it owner-only.

@throws io::Error - When the file cannot be written.