MCPcopy Create free account
hub / github.com/anomalyco/opencode-bench / fileExists

Function fileExists

src/util/fs.ts:4–11  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

2import { constants } from "node:fs";
3
4export async function fileExists(path: string) {
5 try {
6 await access(path, constants.F_OK);
7 return true;
8 } catch {
9 return false;
10 }
11}

Callers 1

generateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected