(globalStoragePath: string, taskId: string)
| 51 | * Gets the storage directory path for a task |
| 52 | */ |
| 53 | export async function getTaskDirectoryPath(globalStoragePath: string, taskId: string): Promise<string> { |
| 54 | const basePath = await getStorageBasePath(globalStoragePath) |
| 55 | const taskDir = path.join(basePath, "tasks", taskId) |
| 56 | await fs.mkdir(taskDir, { recursive: true }) |
| 57 | return taskDir |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * Gets the settings directory path |
no test coverage detected