The FTP standard has no provision for filtering directory listings, but GetFileInfos will pass any arguments it is given on to the server. So if your FTP server supports wildcards, or perhaps some other form of filter, then you can try to pass such a filtering argument to GetFileInfos. Which server are you using?
Needless to say, having 12,000 files in a single directory is not ideal, so if you have any control over it, it might be an idea to rethink your directory structure.
- Hans (EnterpriseDT)