Wildcard formatting


I’m trying to enumerate a few audio files on disk and am trying to combine two functions in juce, but I can’t get it to work.

  1. Getting a proper wildcard from AudioFileManager::getWildcardForAllFormats() I get a string of the format [color=#008000].wav;.aiff;*.bwf[/color] etc…
  2. Enumerating such files using the File::findChildFiles(…) with said wildcard.

Unfortunately I don’t get the expected returns. Are the two wildcard formats incompatible?

(If in findChildFiles I use the wildcard [color=#008000].[/color] I get the lot so it appear to be the wildcard.)

Grateful for your insight


Yes, the File method just takes a single wildcard pattern, it won’t parse it into multiple matches.