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

Function overlay_template_image_ready

crates/openshell-driver-vm/src/driver.rs:4504–4510  ·  view source on GitHub ↗
(path: &Path, size_bytes: u64)

Source from the content-addressed store, hash-verified

4502}
4503
4504async fn overlay_template_image_ready(path: &Path, size_bytes: u64) -> Result<bool, String> {
4505 match tokio::fs::metadata(path).await {
4506 Ok(metadata) => Ok(metadata.is_file() && metadata.len() == size_bytes),
4507 Err(err) if err.kind() == std::io::ErrorKind::NotFound => Ok(false),
4508 Err(err) => Err(format!("stat overlay template {}: {err}", path.display())),
4509 }
4510}
4511
4512fn ensure_sandbox_overlay_template_image(
4513 template_path: &Path,

Callers 1

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected