MCPcopy Index your code
hub / github.com/ermak-dev/cloudpub / get_cache_dir

Function get_cache_dir

client/src/shell.rs:490–498  ·  view source on GitHub ↗
(subdir: &str)

Source from the content-addressed store, hash-verified

488}
489
490pub fn get_cache_dir(subdir: &str) -> Result<PathBuf> {
491 let mut cache_dir = cache_dir().context("Can't get cache dir")?;
492 cache_dir.push("cloudpub");
493 if !subdir.is_empty() {
494 cache_dir.push(subdir);
495 }
496 std::fs::create_dir_all(cache_dir.clone()).context("Can't create cache dir")?;
497 Ok(cache_dir)
498}

Callers 11

main_loopFunction · 0.85
setup_httpdFunction · 0.85
start_httpdFunction · 0.85
publishMethod · 0.85
get_javaFunction · 0.85
setupMethod · 0.85
publishMethod · 0.85
run_scriptFunction · 0.85
run_upgrade_scriptFunction · 0.85
handle_upgrade_downloadFunction · 0.85
purgeMethod · 0.85

Calls 2

is_emptyMethod · 0.80
cloneMethod · 0.80

Tested by

no test coverage detected