Pattern syntax includes standard wildcards as well as full Perl compatible regular expressions. DIFileFinder supports inclusion as well as exclusion filters.
Unlike most file finder components, DIFileFinder does not use events nor does it build lengthy file lists. Instead, it reports back to the application a single file or folder at a time only. This approach ensures a maximum of flexibility using a minimum of resources. Simply call the
TDIFileFinder.Next method each time another file entry is required. It returns True for each file found, and the application can then query the TDIFileFinder component about the file details.
Full folder recursion is provided, and directories can be skipped at any time to avoid recursion if not required. DIFileFinder features filters for files, folders, all file attributes (include and exclude) plus full path and file name filters.
Descendant components may implement their own filtering mechanism by simply overwriting the Validate method.