DirectoryIterator wrong assert


#1

Hi Jules,

in the DirectoryIterator ctor
there is the following assert.

// you have to specify the type of files you’re looking for!
jassert (whatToLookFor > 0 && whatToLookFor <= 3);

Problem is, it asserts when you gives
juce::File::findFilesAndDirectories | juce::File::ignoreHiddenFiles
which is valid.

jassert (whatToLookFor > 0 && whatToLookFor <= 7);
should be the right test

Thanks,


#2

Ok, thanks! Looks like an old assertion that needed updating.


#3