(options: FileSearchOptions)
| 230 | |
| 231 | export class FileSearchFactory { |
| 232 | static create(options: FileSearchOptions): FileSearch { |
| 233 | if (options.enableRecursiveFileSearch) { |
| 234 | return new RecursiveFileSearch(options); |
| 235 | } |
| 236 | return new DirectoryFileSearch(options); |
| 237 | } |
| 238 | } |