(log: &Logger, path: &str)
| 277 | } |
| 278 | |
| 279 | pub fn clear_metadata(log: &Logger, path: &str) { |
| 280 | let cache_path = Path::new(path).to_path_buf(); |
| 281 | let metadata_path = get_metadata_path(cache_path); |
| 282 | log.debug(format!( |
| 283 | "Deleting metadata file {}", |
| 284 | metadata_path.display() |
| 285 | )); |
| 286 | fs::remove_file(metadata_path).unwrap_or_else(|err| { |
| 287 | log.warn(format!("Error deleting metadata file: {}", err)); |
| 288 | }); |
| 289 | } |
no test coverage detected