pub fn write(dir: &Path, name: &str, body: &str) -> Result<(), Error>
Write one file inside a report’s directory, creating what it needs.