pub async fn write_file(path: PathBuf, contents: &str) -> AppResult<()>