MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / ensureDirectoryExistsSync

Function ensureDirectoryExistsSync

sdk/src/credentials.ts:34–38  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

32})
33
34const ensureDirectoryExistsSync = (dir: string) => {
35 if (!fs.existsSync(dir)) {
36 fs.mkdirSync(dir, { recursive: true })
37 }
38}
39
40export const userFromJson = (json: string): User | null => {
41 try {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected