The enum File::TypesOfFileToFind is not written correctly. The values should be bit-wise flags if they are not intended to be mutually exclusive. Also, currently File methods that use this class raise an assertion if the value is over 3, which means you can never use ignoreHiddenFiles.
This makes it impossible to list directories and files, but omit hidden entries. Or, it’s impossible to list “directories” and “files matching the wildcard”, etc.