pub fn write_file(path: &Path, content: &str, force: bool) -> Result<()>
Write a file, checking for existence first