MCPcopy
hub / github.com/EveryInc/compound-engineering-plugin / exists

Function exists

tests/codex-writer.test.ts:11–18  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

9import { parseFrontmatter } from "../src/utils/frontmatter"
10
11async function exists(filePath: string): Promise<boolean> {
12 try {
13 await fs.access(filePath)
14 return true
15 } catch {
16 return false
17 }
18}
19
20async function entryExists(filePath: string): Promise<boolean> {
21 try {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected