MCPcopy Create free account
hub / github.com/brocode/fw / is_socket

Function is_socket

src/sync/mod.rs:143–145  ·  view source on GitHub ↗
(path: &str)

Source from the content-addressed store, hash-verified

141
142#[cfg(unix)]
143fn is_socket(path: &str) -> bool {
144 std::fs::metadata(path).map(|m| m.file_type().is_socket()).unwrap_or(false)
145}
146
147#[cfg(not(unix))]
148fn is_socket(_: &str) -> bool {

Callers 1

ssh_agent_runningFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected