pub fn write_file_if_changed(path: &str, content: &str) -> Result<bool>
Returns true if the file was written, false if it was already byte-identical.