Skip to main content

write

Function write 

Source
pub fn write<'a>(
    work_dir: &str,
    files: impl Iterator<Item = (&'a str, &'a str)>,
) -> Result<bool, String>
Expand description

Write a host launch’s files for work_dir, a folder the rule holds for: each goes to the agent’s own folder outside it, and nothing is written into the folder. files are (name, content) as the launch rendered them. The skills and instructions of an earlier launch are removed first. A file with no place outside (another harness’s startup file) is not written: no other harness is started there. Ok(false) when the rule does not hold and the caller writes into the folder as before.