pub fn write_binary_file(path: &Path, content: &[u8], mode: u32) -> Result<()>Expand description
Writes bytes using the destination directory as the least-authority capability root.
§Parameters
path: Input consumed bycrate::fs::write_binary_file.content: Input consumed bycrate::fs::write_binary_file.mode: Input consumed bycrate::fs::write_binary_file.
§Returns
Returns the computed value produced by crate::fs::write_binary_file.
§Examples
ⓘ
let _result = pharos_runtime_core::fs::write_binary_file(std::path::Path::new("fixture.json"), todo!(), 0o640);§Related
crate::fsfor adjacent helpers that share the same runtime surface.