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
|
|
@ -2221,9 +2221,9 @@ private:
|
|||
// Delete .rsrc files in folder but don't follow sym-links
|
||||
void deleteRsrcFiles (const File& folder) const
|
||||
{
|
||||
for (DirectoryIterator di (folder, false, "*", File::findFilesAndDirectories); di.next();)
|
||||
for (const auto& di : RangedDirectoryIterator (folder, false, "*", File::findFilesAndDirectories))
|
||||
{
|
||||
auto& entry = di.getFile();
|
||||
const auto& entry = di.getFile();
|
||||
|
||||
if (! entry.isSymbolicLink())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue