(dir: string, pattern = '**')
| 40 | } |
| 41 | |
| 42 | export function getFilesInDir(dir: string, pattern = '**'): Promise<string[]> { |
| 43 | const normalizedDir = pathToPosix(path.join(dir, pattern)) |
| 44 | return globby(normalizedDir, { onlyFiles: true, onlyDirectories: false }) |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Removes all empty directories in the given directory. |
nothing calls this directly
no test coverage detected