(repoRoot, repoPath)
| 819 | } |
| 820 | |
| 821 | function probeKind(repoRoot, repoPath) { |
| 822 | try { |
| 823 | const stat = fs.statSync(path.join(repoRoot, repoPath)); |
| 824 | return stat.isDirectory() ? "dir" : "file"; |
| 825 | } catch (e) { |
| 826 | return null; |
| 827 | } |
| 828 | } |
| 829 | |
| 830 | // Sorted names of the entries of `rel` whose resolved kind is `want` |
| 831 | // ("dir" or "file"), or null if `rel` cannot be read. |
no outgoing calls
no test coverage detected