MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / tryAccess

Function tryAccess

ts/workflow-cli/cli/open.ts:138–145  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

136}
137
138function tryAccess(p: string): boolean {
139 try {
140 accessSync(p);
141 return true;
142 } catch {
143 return false;
144 }
145}
146
147async function waitForPort(port: number, timeoutMs: number): Promise<boolean> {
148 const deadline = Date.now() + timeoutMs;

Callers 2

openStaticFunction · 0.85
locateViteBinFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected