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

Function push_unique_path

crates/openshell-server/src/compute/vm.rs:248–252  ·  view source on GitHub ↗
(paths: &mut Vec<PathBuf>, path: PathBuf)

Source from the content-addressed store, hash-verified

246}
247
248fn push_unique_path(paths: &mut Vec<PathBuf>, path: PathBuf) {
249 if !paths.iter().any(|existing| existing == &path) {
250 paths.push(path);
251 }
252}
253
254/// Path of the Unix domain socket the driver will listen on.
255pub fn compute_driver_socket_path(vm_config: &VmComputeConfig) -> PathBuf {

Callers 3

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected