pub fn write(path: &Path, bytes: impl AsRef<[u8]>) -> Result<()>
Write bytes to path (like std::fs::write), creating it owner-only.
bytes
path
std::fs::write
@throws io::Error - When the file cannot be written.