DirectoryIterator bug with invalid (empty path) File?


#1

I expect DirectoryIterator::next() to return false with a non existing file, but it returns true on windows :

File f;
DirectoryIterator iter (f, true, "*", File::findFiles);
jassert (! iter.next()); 

am I missing something simple, or is that a bug?


#2

Thanks for the heads up. Fixed on develop now.


#3

Thanks Fabian!
I don’t see it in git though. did you push it?


#4

OK. Clearly need more coffee… It’s up now.