(log: &Logger, path: &str)
| 243 | } |
| 244 | |
| 245 | pub fn clear_metadata(log: &Logger, path: &str) { |
| 246 | let cache_path = Path::new(path).to_path_buf(); |
| 247 | let metadata_path = get_metadata_path(cache_path); |
| 248 | log.debug(format!( |
| 249 | "Deleting metadata file {}", |
| 250 | metadata_path.display() |
| 251 | )); |
| 252 | fs::remove_file(metadata_path).unwrap_or_else(|err| { |
| 253 | log.warn(format!("Error deleting metadata file: {}", err)); |
| 254 | }); |
| 255 | } |
no test coverage detected