(dir: string)
| 35 | * Retrieve any folder nested into the given directory, at any level of depth. |
| 36 | */ |
| 37 | export function getNestedFoldersInDir(dir: string): Promise<string[]> { |
| 38 | const normalizedDir = pathToPosix(path.join(dir, '**')) |
| 39 | return globby(normalizedDir, { onlyFiles: false, onlyDirectories: true }) |
| 40 | } |
| 41 | |
| 42 | export function getFilesInDir(dir: string, pattern = '**'): Promise<string[]> { |
| 43 | const normalizedDir = pathToPosix(path.join(dir, pattern)) |
nothing calls this directly
no test coverage detected