(relativePath: string)
| 199 | const matches: Array<{ path: string; mtimeMs: number }> = [] |
| 200 | |
| 201 | function shouldIgnore(relativePath: string): boolean { |
| 202 | const withSlash = relativePath.endsWith('/') |
| 203 | ? relativePath |
| 204 | : `${relativePath}/` |
| 205 | return ignoreMatchers.some( |
| 206 | isMatch => isMatch(relativePath) || isMatch(withSlash), |
| 207 | ) |
| 208 | } |
| 209 | |
| 210 | async function scan(currentDir: string, relativeDir = ''): Promise<void> { |
| 211 | if (abortSignal.aborted) { |