# Directory Iterator multiple file types

**URL:** <https://forum.juce.com/t/directory-iterator-multiple-file-types/10351>\
**Category:** General JUCE discussion\
**Created:** [April 26, 2013, 9:26am UTC](https://forum.juce.com/t/directory-iterator-multiple-file-types/10351 "2013-04-26T09:26:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmy939](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@jimmy939](https://forum.juce.com/u/jimmy939)\
**Post date:** [April 26, 2013, 9:26am UTC](https://forum.juce.com/t/directory-iterator-multiple-file-types/10351/1 "2013-04-26T09:26:53Z")

</div>

Hi All,

I’ve been using the directory iterator to search through a file for one file type \*.mp3 and it works fine, but when you try to add others in a similar way to the file chooser it no longer works.

Is it possible for the directory iterator to use the WildcardFileFilter instead of the string matchesWildcard?

Thanks

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [April 26, 2013, 12:14pm UTC](https://forum.juce.com/t/directory-iterator-multiple-file-types/10351/2 "2013-04-26T12:14:16Z")

</div>

Thanks, good request - I should add that.

---

<div class="post-metadata">

**Author:** ![jimmy939](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@jimmy939](https://forum.juce.com/u/jimmy939)\
**Post date:** [April 26, 2013, 1:59pm UTC](https://forum.juce.com/t/directory-iterator-multiple-file-types/10351/3 "2013-04-26T13:59:07Z")

</div>

Thanks Jules,

I’ve been using it throughout my application for mp3s, but I’ve just started to allow other file formats.  
I used the getWildcardForAllFormats() function and then realised it didn’t work
