summaryrefslogtreecommitdiff
path: root/indra/llvfs/lldir.cpp
diff options
context:
space:
mode:
authorMark Palange (Mani) <palange@lindenlab.com>2011-01-21 15:55:31 -0800
committerMark Palange (Mani) <palange@lindenlab.com>2011-01-21 15:55:31 -0800
commit1e9111466bb8a77fc8054ca3d458a6692579fd3e (patch)
tree16b3642ca58b29e5037aa9563fba84179df9ceb5 /indra/llvfs/lldir.cpp
parentdd3607cba651439fb1f73e78df38a160a2ef4f5c (diff)
parent45e25e83cf7457f495b051b9f7683ee299547290 (diff)
Merge
Diffstat (limited to 'indra/llvfs/lldir.cpp')
-rw-r--r--indra/llvfs/lldir.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llvfs/lldir.cpp b/indra/llvfs/lldir.cpp
index 64556bcb4c..ab7d15dfef 100644
--- a/indra/llvfs/lldir.cpp
+++ b/indra/llvfs/lldir.cpp
@@ -40,6 +40,8 @@
#include "lltimer.h" // ms_sleep()
#include "lluuid.h"
+#include "lldiriterator.h"
+
#if LL_WINDOWS
#include "lldir_win32.h"
LLDir_Win32 gDirUtil;
@@ -83,7 +85,9 @@ S32 LLDir::deleteFilesInDir(const std::string &dirname, const std::string &mask)
std::string filename;
std::string fullpath;
S32 result;
- while (getNextFileInDir(dirname, mask, filename))
+
+ LLDirIterator iter(dirname, mask);
+ while (iter.next(filename))
{
fullpath = dirname;
fullpath += getDirDelimiter();