MCPcopy Index your code
hub / github.com/CommandCodeAI/BaseAI / checkFileExists

Function checkFileExists

packages/baseai/src/init/index.ts:133–140  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

131}
132
133async function checkFileExists(filePath: string): Promise<boolean> {
134 try {
135 await fs.access(filePath);
136 return true;
137 } catch {
138 return false;
139 }
140}
141
142async function createBaseAIDirectories(): Promise<void> {
143 const baseaiFolder = path.join(process.cwd(), 'baseai');

Callers 3

ensurePackageJsonFunction · 0.85
createConfigFileFunction · 0.85
createEnvBaseAIExampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected