Skip to main content

append_file_within

Function append_file_within 

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

Appends bytes to a regular file below an explicit capability root.

§Parameters

§Returns

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

§Examples

ⓘ
let _result = pharos_runtime_core::fs::append_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.