(dir: string)
| 51 | } |
| 52 | |
| 53 | async function listDir(dir: string): Promise<string[]> { |
| 54 | try { |
| 55 | const entries = await fs.readdir(dir, { withFileTypes: true }); |
| 56 | return entries |
| 57 | .map((e) => (e.isDirectory() ? e.name + "/" : e.name)) |
| 58 | .sort(); |
| 59 | } catch { |
| 60 | return []; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | async function walkFiles(root: string, rel = ""): Promise<string[]> { |
| 65 | const results: string[] = []; |
no outgoing calls
no test coverage detected