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

Function oci_layout_blob_path

crates/openshell-driver-vm/src/driver.rs:4297–4300  ·  view source on GitHub ↗
(layout_dir: &Path, digest: &str)

Source from the content-addressed store, hash-verified

4295}
4296
4297fn oci_layout_blob_path(layout_dir: &Path, digest: &str) -> Result<PathBuf, String> {
4298 let hex = sha256_digest_hex(digest)?;
4299 Ok(oci_layout_blobs_dir(layout_dir).join(hex))
4300}
4301
4302fn sha256_digest_hex(digest: &str) -> Result<&str, String> {
4303 let Some((algorithm, hex)) = digest.split_once(':') else {

Calls 2

sha256_digest_hexFunction · 0.85
oci_layout_blobs_dirFunction · 0.85

Tested by

no test coverage detected