That depends on how you are doing it.
If you use
Directory.GetFiles[
^] then no - it's a monolithic operation which only returns when it's done, so a progress bar would have to be a guess (since you have no idea how many files it will fetch until it;s done it, you have no idea what 10%, 20%, etc complete actually are!
It is possible:
c# - Show progress when searching all files in a directory - Stack Overflow[
^] but to be honest, it's a fair amount of work for very little reward. A "marquee" style progress bar and GetFiles normally works fine for me.