diff options
author | Seth ProductEngine <slitovchuk@productengine.com> | 2011-05-11 18:12:23 +0300 |
---|---|---|
committer | Seth ProductEngine <slitovchuk@productengine.com> | 2011-05-11 18:12:23 +0300 |
commit | e213a36f703629dcfe27ed65ac1f66a5a5194b67 (patch) | |
tree | 59a27b2c3552eb42139da0d2a45e4a9dde718f78 /indra/llvfs/lldir.cpp | |
parent | 662bc0803cc9306062a0106467fd8b83290b4bcf (diff) |
STORM-477 Restored the backed out changeset: b62b260aa04d
Diffstat (limited to 'indra/llvfs/lldir.cpp')
-rw-r--r-- | indra/llvfs/lldir.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llvfs/lldir.cpp b/indra/llvfs/lldir.cpp index 341c96f6ea..f3ac17d612 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(); |