You guys have got me wondering as well. I seem to recall that this "enhancement" was made some time ago, long before v3.0 of FPC. So it may have been designed to fix an issue I had back in about 2012 or 2013. But I'm also not sure, now, how it works with the missing parameter either. But it's implemented in my code and my program, and, as the screenshots show, with avariety of hidden and unhidden files and folders, it does work as intended. This is from the code as seen here :
https://github.com/tedsmith/quickhash/blob/master/unit2.pas#L1751(preparing the screenshots, I just noticed a different bug re time taken, which I have now fixed!)
But that said, maybe the newer version of FindAllFiles works as needed anyway. I need to look at testing it as Bart has done and consider using the native FPC function now.
(Note: According to my comments I gave you credit, Bart (
https://github.com/tedsmith/quickhash/blob/master/FindAllFilesEnhanced.pas#L2), for helping with this! So I dig some more and found the thread that triggered it all, for info :
http://forum.lazarus-ide.org/index.php?topic=26705.0 )