Function
fromDirMultiple
(startPaths: string[], filter: RegExp, excludeDirectoryFilter: RegExp | null, callback: Function)
Source from the content-addressed store, hash-verified
| 2 | import { join as joinPath } from 'path'; |
| 3 | |
| 4 | export function fromDirMultiple(startPaths: string[], filter: RegExp, excludeDirectoryFilter: RegExp | null, callback: Function) { |
| 5 | for (const path of startPaths) { |
| 6 | fromDir(path, path, filter, excludeDirectoryFilter, callback); |
| 7 | } |
| 8 | } |
| 9 | |
| 10 | /** |
| 11 | * Recursively apply callback to files in a directory (and sub-directories) that match the |