Interesting, I'll have a look at the code but I wonder if the code as it is now is prepared to allow editing or removal of found entries upon those events ?
Not as it is; both
FindAllFiles() and
FindAllDirectories()) are relatively simple, no-frills, convenience functions. To do what you want you'll have to build your own versions but note that TFileSearcher events are rather simple by themselves (as couldn't be otherwise) and they just pass the
TFileIterator to the handler.
What we did for another program was to subclass the searcher to add "confirmation" events and a "FindFiles" method which internally called the new events to know whether to add the files to the result list. That, though, may be overkill for you (it also extended the searcher in other ways): a simple unit implementing a "FindFiles" function with a callback parameter might be enough.
BTW, I initially wrote TSearcher, whereas the class name is TFileSearcher. Sorry about that; it's now corrected.