mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Files: Add RangedDirectoryIterator
This commit is contained in:
parent
5f348c3040
commit
e7e1de78fa
59 changed files with 481 additions and 84 deletions
|
|
@ -1502,7 +1502,7 @@ bool Project::Item::addFileAtIndex (const File& file, int insertIndex, const boo
|
|||
{
|
||||
auto group = addNewSubGroup (file.getFileName(), insertIndex);
|
||||
|
||||
for (DirectoryIterator iter (file, false, "*", File::findFilesAndDirectories); iter.next();)
|
||||
for (const auto& iter : RangedDirectoryIterator (file, false, "*", File::findFilesAndDirectories))
|
||||
if (! project.getMainGroup().findItemForFile (iter.getFile()).isValid())
|
||||
group.addFileRetainingSortOrder (iter.getFile(), shouldCompile);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue