diff --git a/indra/llvfs/lldir.cpp b/indra/llvfs/lldir.cpp index 2625629c8b..0e74e5a3d5 100644 --- a/indra/llvfs/lldir.cpp +++ b/indra/llvfs/lldir.cpp @@ -81,6 +81,8 @@ LLDir::~LLDir() S32 LLDir::deleteFilesInDir(const std::string &dirname, const std::string &mask) { + if (!fileExists(dirname)) return 0; + S32 count = 0; std::string filename; std::string fullpath;