MCPcopy Create free account
hub / github.com/evilsocket/cake / cake_cache_dir

Function cake_cache_dir

cake-core/src/utils/models.rs:229–238  ·  view source on GitHub ↗

Return the Cake cluster cache directory if it exists.

()

Source from the content-addressed store, hash-verified

227
228/// Return the Cake cluster cache directory if it exists.
229fn cake_cache_dir() -> Option<PathBuf> {
230 let cache = dirs::cache_dir()
231 .unwrap_or_else(std::env::temp_dir)
232 .join("cake");
233 if cache.exists() {
234 Some(cache)
235 } else {
236 None
237 }
238}
239
240/// Scan the HuggingFace hub cache for model snapshots.
241fn scan_hf_cache(hf_cache: &Path, models: &mut Vec<LocalModel>) -> Result<()> {

Callers 1

list_modelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected