(paths: string[])
| 21 | } |
| 22 | |
| 23 | export async function filterToFolders(paths: string[]): Promise<string[]> { |
| 24 | const set = new Set(paths); |
| 25 | for (const each of [...set.keys()]) { |
| 26 | if (!each || !await filepath.isFolder(each)) { |
| 27 | set.delete(each); |
| 28 | } |
| 29 | } |
| 30 | return [...set.keys()]; |
| 31 | } |
| 32 | |
| 33 | export interface Entry { |
| 34 | name: string; |
no test coverage detected