(filter: (ext: string) => boolean)
| 53 | return out; |
| 54 | } |
| 55 | function enumerate(filter: (ext: string) => boolean) { |
| 56 | const files: string[] = []; |
| 57 | for (const r of roots) walk(r, files); |
| 58 | return files.filter((f) => filter(f.split('.').pop() || '')); |
| 59 | } |
| 60 | function shouldExcludeAbsolute(p: string) { |
| 61 | const file = p.split('/').pop() || ''; |
| 62 | if (file.startsWith('_')) return true; |