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

Function require_rootfs_path

crates/openshell-driver-vm/src/rootfs.rs:874–884  ·  view source on GitHub ↗
(rootfs: &Path, relative: &str)

Source from the content-addressed store, hash-verified

872}
873
874fn require_rootfs_path(rootfs: &Path, relative: &str) -> Result<(), String> {
875 let candidate = rootfs.join(relative.trim_start_matches('/'));
876 if candidate.exists() {
877 Ok(())
878 } else {
879 Err(format!(
880 "prepared rootfs is missing {}",
881 candidate.display()
882 ))
883 }
884}
885
886fn require_any_rootfs_path(rootfs: &Path, candidates: &[&str]) -> Result<(), String> {
887 if candidates

Callers 1

validate_sandbox_rootfsFunction · 0.85

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected