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

Function pathExists

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 pathExists(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 ensureDir(dirPath: string): Promise<void> {
27 await fs.mkdir(dirPath, { recursive: true })

Callers 15

readJsonObjectSafeFunction · 0.90
ensureCodexAgentsFileFunction · 0.90
detectInstalledToolsFunction · 0.90
runFunction · 0.90
resolvePluginPathFunction · 0.90
resolvePluginRootFunction · 0.90
moveIfExistsFunction · 0.90
moveLegacySkillIfOwnedFunction · 0.90
moveLegacyAgentIfOwnedFunction · 0.90
resolveCleanupPluginPathFunction · 0.90
resolveClaudeRootFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected