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

Method get_cache_path

rust/src/lib.rs:1684–1700  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1682 }
1683
1684 fn get_cache_path(&self) -> Result<Option<PathBuf>, Error> {
1685 let path = Path::new(&self.get_config().cache_path);
1686 match create_path_if_not_exists(path) {
1687 Ok(_) => {
1688 let canon_path = self.canonicalize_path(path.to_path_buf());
1689 Ok(Some(Path::new(&canon_path).to_path_buf()))
1690 }
1691 Err(err) => {
1692 self.get_logger().warn(format!(
1693 "Cache folder ({}) cannot be created: {}",
1694 path.display(),
1695 err
1696 ));
1697 Ok(None)
1698 }
1699 }
1700 }
1701
1702 fn set_cache_path(&mut self, cache_path: String) {
1703 if !cache_path.is_empty() {

Callers 15

download_browserMethod · 0.80
setupMethod · 0.80
statsMethod · 0.80

Implementers 8

edge.rsrust/src/edge.rs
iexplorer.rsrust/src/iexplorer.rs
safaritp.rsrust/src/safaritp.rs
electron.rsrust/src/electron.rs
chrome.rsrust/src/chrome.rs
firefox.rsrust/src/firefox.rs
grid.rsrust/src/grid.rs
safari.rsrust/src/safari.rs

Calls 5

canonicalize_pathMethod · 0.80
get_configMethod · 0.45
warnMethod · 0.45
get_loggerMethod · 0.45

Tested by

no test coverage detected