pub fn write_file(
ctx: &mut HostContext,
path: &Path,
content: &[u8],
) -> Result<()>Expand description
Write content to path, creating parent directories as needed.
In dry-run mode, records a planned write (byte length only) and returns.
ยงErrors
Returns HortoError::Io on parent create or write failure in apply mode.