Gents
I got this working well with my Linux platform, but there is a snag with the Windows version.
AFAIK, on Windows, FindAllFiles (and FindAllFilesEx) will find hidden files, but NOT if they are in a hidden directory. Whereas on Linux, because "everything is a file", it works as hoped. But on Windows, only hidden files in unhidden directories are found.
So I need a cross-platfrom way of making FindAllFilesEx find all files, hidden or not, in all directories, hidden or not, for both Windows and Linux.
I realise the default and sensible answer would be "just use TFileSearcher and pass faDirectory or faHidden but that would involve an intensive re-write of the core of my program I think, unless you can see otherwise.