(dirPath: string)
| 576 | * IMPORTANT: This bypasses ALLOWED_ROOT_DIRECTORY restrictions. |
| 577 | */ |
| 578 | export async function systemPathReaddir(dirPath: string): Promise<string[]> { |
| 579 | if (!isAllowedSystemPath(dirPath)) { |
| 580 | throw new Error(`[SystemPaths] Access denied: ${dirPath} is not an allowed system path`); |
| 581 | } |
| 582 | return fs.readdir(dirPath); |
| 583 | } |
| 584 | |
| 585 | /** |
| 586 | * Read directory contents from an allowed system path (synchronous) |
no test coverage detected