MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / clear_metadata

Function clear_metadata

rust/src/metadata.rs:245–255  ·  view source on GitHub ↗
(log: &Logger, path: &str)

Source from the content-addressed store, hash-verified

243}
244
245pub 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}

Callers 1

mainFunction · 0.85

Calls 4

get_metadata_pathFunction · 0.85
remove_fileFunction · 0.85
debugMethod · 0.45
warnMethod · 0.45

Tested by

no test coverage detected