Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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)]
143
fn 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))]
148
fn is_socket(_: &str) -> bool {
Callers
1
ssh_agent_running
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected