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

Function is_unix_socket

crates/openshell-core/src/config.rs:236–239  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

234
235#[cfg(unix)]
236fn is_unix_socket(path: &Path) -> bool {
237 path.metadata()
238 .is_ok_and(|metadata| metadata.file_type().is_socket())
239}
240
241#[cfg(unix)]
242fn podman_socket_responds(path: &Path) -> bool {

Callers 3

docker_socket_availableFunction · 0.85
unix_socket_http_pingFunction · 0.85
is_reachable_unix_socketFunction · 0.85

Calls 1

metadataMethod · 0.80

Tested by

no test coverage detected