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

Function validate_runtime_dir

crates/openshell-driver-vm/src/runtime.rs:892–901  ·  view source on GitHub ↗
(dir: &Path)

Source from the content-addressed store, hash-verified

890}
891
892pub fn validate_runtime_dir(dir: &Path) -> Result<(), String> {
893 if !dir.is_dir() {
894 return Err(format!(
895 "VM runtime not found at {}. Run `mise run vm:setup` or set {VM_RUNTIME_DIR_ENV}",
896 dir.display()
897 ));
898 }
899
900 embedded_runtime::validate_runtime_dir(dir)
901}
902
903pub fn configured_runtime_dir() -> Result<PathBuf, String> {
904 if let Some(path) = std::env::var_os(VM_RUNTIME_DIR_ENV) {

Callers 2

libkrunFunction · 0.70
run_libkrun_vmFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected