(rootPath)
| 155 | } |
| 156 | |
| 157 | export async function listImmediateDirectories(rootPath) { |
| 158 | const entries = await fs.readdir(rootPath, { withFileTypes: true }); |
| 159 | return entries |
| 160 | .filter((entry) => entry.isDirectory()) |
| 161 | .map((entry) => path.join(rootPath, entry.name)) |
| 162 | .sort(); |
| 163 | } |
no test coverage detected