MCPcopy
hub / github.com/ericc-ch/copilot-api / ensurePaths

Function ensurePaths

src/lib/paths.ts:14–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12}
13
14export async function ensurePaths(): Promise<void> {
15 await fs.mkdir(PATHS.APP_DIR, { recursive: true })
16 await ensureFile(PATHS.GITHUB_TOKEN_PATH)
17}
18
19async function ensureFile(filePath: string): Promise<void> {
20 try {

Callers 3

runFunction · 0.90
runServerFunction · 0.90
runAuthFunction · 0.90

Calls 1

ensureFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…