MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / runtime_cache_base

Function runtime_cache_base

crates/openshell-driver-vm/src/embedded_runtime.rs:152–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150}
151
152fn runtime_cache_base() -> Result<PathBuf, String> {
153 let base =
154 openshell_core::paths::xdg_data_dir().map_err(|e| format!("resolve XDG data dir: {e}"))?;
155 Ok(base.join("openshell").join("vm-runtime"))
156}
157
158fn cleanup_old_versions(current_dir: &Path) -> Result<(), String> {
159 let base = runtime_cache_base()?;

Callers 1

cleanup_old_versionsFunction · 0.85

Calls 1

xdg_data_dirFunction · 0.85

Tested by

no test coverage detected