Skip to main content

write_file_within

Function write_file_within 

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

Writes bytes below an explicit capability root through durable atomic replacement.

§Parameters

§Returns

Returns the computed value produced by crate::fs::write_file_within.

§Examples

ⓘ
let _result = pharos_runtime_core::fs::write_file_within(std::path::Path::new("."), std::path::Path::new("fixture.json"), todo!(), 0o640);
  • crate::fs for adjacent helpers that share the same runtime surface.