Hi, i'm probably lazy searching through the juce docs, is there a way to make this more concise ?
const String filePath = file.getFullPathName();
const String wildcard = audioFormatManager.getWildcardForAllFormats();
const StringArray wildcards = StringArray::fromTokens(wildcard, " ,;", String::empty);
for (int i = 0; i < wildcards.size(); i++)
{
if (filePath.matchesWildcard(wildcards[i], true))
return true;
}
a method in the file object would be cool tho :)
