(taskListId: string)
| 233 | } |
| 234 | |
| 235 | export 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). |
no test coverage detected