The ProgressBar is used when you know when the process will be done. While searching for files, you don't know the total number of files before counting them.
If you want to show the progress, you have to search for the files twice. Once to find out the total number of files, and the second one for finding your target files.