MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / ensureTasksDir

Function ensureTasksDir

source code/utils/tasks.ts:235–243  ·  view source on GitHub ↗
(taskListId: string)

Source from the content-addressed store, hash-verified

233}
234
235export async function ensureTasksDir(taskListId: string): Promise<void> {
236 const dir = getTasksDir(taskListId)
237 try {
238 await mkdir(dir, { recursive: true })
239 } catch {
240 // Directory already exists or creation failed; callers will surface
241 // errors from subsequent operations.
242 }
243}
244
245/**
246 * 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