(relativeDirectory)
| 95 | async function allPaths(root) { |
| 96 | const paths = []; |
| 97 | async function visit(relativeDirectory) { |
| 98 | const entries = await readdir(path.join(root, relativeDirectory), { withFileTypes: true }); |
| 99 | for (const entry of entries) { |
| 100 | if (['.git', '.cache', '.tshy-build', 'dist', 'node_modules'].includes(entry.name)) continue; |
| 101 | const relativePath = path.posix.join(relativeDirectory, entry.name); |
| 102 | paths.push(relativePath); |
| 103 | if (entry.isDirectory()) await visit(relativePath); |
| 104 | } |
| 105 | } |
| 106 | await visit(''); |
| 107 | return paths; |
| 108 | } |
no test coverage detected