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

Function isFilePath

src/utils/exec.ts:686–693  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

684}
685
686async function isFilePath(filePath: string): Promise<boolean> {
687 try {
688 const fileStat = await stat(filePath);
689 return fileStat.isFile();
690 } catch {
691 return false;
692 }
693}
694
695function normalizeTimeoutMs(value: number | undefined): number | undefined {
696 if (!Number.isFinite(value)) return undefined;

Callers 2

resolveFileOverridePathFunction · 0.85
isExecutablePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected