(dirPath: string)
| 187 | } |
| 188 | |
| 189 | async function readSubdirs(dirPath: string): Promise<string[]> { |
| 190 | try { |
| 191 | const entries = await readdir(dirPath, { withFileTypes: true }) |
| 192 | return entries.filter(d => d.isDirectory()).map(d => d.name) |
| 193 | } catch { |
| 194 | return [] |
| 195 | } |
| 196 | } |
no test coverage detected