MCPcopy
hub / github.com/davepoon/buildwithclaude / fileExists

Function fileExists

packages/bwc-cli/src/utils/files.ts:17–24  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

15}
16
17export async function fileExists(filePath: string): Promise<boolean> {
18 try {
19 await fs.access(filePath)
20 return true
21 } catch {
22 return false
23 }
24}
25
26export async function readFile(filePath: string): Promise<string> {
27 return fs.readFile(filePath, 'utf-8')

Callers 14

promptForInputMethod · 0.70
validateInputsMethod · 0.70
readMCPJsonFunction · 0.70
collectStatusReportFunction · 0.50
performHealthChecksFunction · 0.50
showSubagentInfoFunction · 0.50
showCommandInfoFunction · 0.50
removeSubagentFunction · 0.50
removeCommandFunction · 0.50
addSubagentFunction · 0.50
addCommandFunction · 0.50
findProjectConfigMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected