Browse Source

DirectoryIterator fix when multiple wildcards are used.

tags/2021-05-28
jules 11 years ago
parent
commit
1dbc29bbe0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_core/files/juce_DirectoryIterator.cpp

+ 2
- 2
modules/juce_core/files/juce_DirectoryIterator.cpp View File

@@ -109,8 +109,8 @@ bool DirectoryIterator::next (bool* const isDirResult, bool* const isHiddenResul
matches = (whatToLookFor & File::findFiles) != 0;
}
// if recursive, we're not relying on the OS iterator to do the wildcard match, so do it now..
if (matches && isRecursive)
// if we're not relying on the OS iterator to do the wildcard match, do it now..
if (matches && (isRecursive || wildCards.size() > 1))
matches = fileMatches (wildCards, filename);
if (matches && (whatToLookFor & File::ignoreHiddenFiles) != 0)


Loading…
Cancel
Save