MCPcopy
hub / github.com/codeaashu/claude-code / ensureTasksDir

Function ensureTasksDir

src/utils/tasks.ts:233–241  ·  view source on GitHub ↗
(taskListId: string)

Source from the content-addressed store, hash-verified

231}
232
233export async function ensureTasksDir(taskListId: string): Promise<void> {
234 const dir = getTasksDir(taskListId)
235 try {
236 await mkdir(dir, { recursive: true })
237 } catch {
238 // Directory already exists or creation failed; callers will surface
239 // errors from subsequent operations.
240 }
241}
242
243/**
244 * Finds the highest task ID from existing task files (not including high water mark).

Callers 3

callFunction · 0.85
ensureTaskListLockFileFunction · 0.85
useTaskListWatcherFunction · 0.85

Calls 2

getTasksDirFunction · 0.85
mkdirFunction · 0.85

Tested by

no test coverage detected