Skip to main content

write_binary_file

Function write_binary_file 

Source
pub fn write_binary_file(
    path: &Path,
    content: &[u8],
    mode: u32,
) -> Result<(), Error>
Expand description

Writes bytes using the destination directory as the least-authority capability root.

§Parameters

§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);
  • crate::fs for adjacent helpers that share the same runtime surface.