I need to get a list of all the filenames (including the path) that match a wildcard in a directory and all its dub directories.
Given the wildcard *.mp3, and a base directory, the program should go through that base directory and all its subdirectories to get all the paths and filenames of all the matching files. I would like this done in a reusable function so that in my code, I can write something like:
GetMatchingFiles('*.mp3', 'C:\MP3', AStringList);
The program would then put all the paths and filenames into the stringlist I passed it.
If someone could do this, it would be a VERY big help!