pub fn with_changed_file<F: FnOnce() -> Result<()>>( path: &str, append_content: &str, f: F ) -> Result<()>