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

Function short_binary_name

crates/openshell-sandbox/src/mechanistic_mapper.rs:423–425  ·  view source on GitHub ↗

Extract just the binary name from a full path.

(path: &str)

Source from the content-addressed store, hash-verified

421
422/// Extract just the binary name from a full path.
423fn short_binary_name(path: &str) -> String {
424 path.rsplit('/').next().unwrap_or(path).to_string()
425}
426
427/// Check if a destination host is always-blocked.
428///

Callers 1

generate_proposalsFunction · 0.85

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected