MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / fileExistsAtPath

Function fileExistsAtPath

src/utils/fs.ts:40–47  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

38 * @returns A promise that resolves to true if the path exists, false otherwise.
39 */
40export async function fileExistsAtPath(filePath: string): Promise<boolean> {
41 try {
42 await fs.access(filePath)
43 return true
44 } catch {
45 return false
46 }
47}

Callers 15

migrateSettingsFunction · 0.90
migrateCustomModesToYamlFunction · 0.90
autoImportSettingsFunction · 0.90
executeMethod · 0.90
executeMethod · 0.90
executeMethod · 0.90
handleAddFileMethod · 0.90
handleDeleteFileMethod · 0.90
handleUpdateFileMethod · 0.90
executeMethod · 0.90
handlePartialMethod · 0.90
executeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected