MCPcopy
hub / github.com/Fission-AI/OpenSpec / fileExists

Function fileExists

test/cli-e2e/basic.test.ts:8–15  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

6import { AI_TOOLS } from '../../src/core/config.js';
7
8async function fileExists(filePath: string): Promise<boolean> {
9 try {
10 await fs.access(filePath);
11 return true;
12 } catch {
13 return false;
14 }
15}
16
17const tempRoots: string[] = [];
18

Callers 1

basic.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected