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