MCPcopy Create free account
hub / github.com/anomalyco/opencode / exists

Function exists

packages/opencode/src/util/filesystem.ts:12–14  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

10
11// Fast sync version for metadata checks
12export async function exists(p: string): Promise<boolean> {
13 return existsSync(p)
14}
15
16export async function isDir(p: string): Promise<boolean> {
17 try {

Callers 4

writeProposedEditMethod · 0.90
diffContentForPatchFunction · 0.90
findUpFunction · 0.70
upFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected