MCPcopy Index your code
hub / github.com/callstack/agent-device / resolveExistingFile

Function resolveExistingFile

src/daemon/code-signature.ts:92–98  ·  view source on GitHub ↗
(candidatePath: string)

Source from the content-addressed store, hash-verified

90}
91
92function resolveExistingFile(candidatePath: string): string | null {
93 try {
94 return fs.statSync(candidatePath).isFile() ? candidatePath : null;
95 } catch {
96 return null;
97 }
98}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected