diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-05-19 21:51:55 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-05-20 16:15:29 +0300 |
commit | 1d40793b175637cee2f7fb36106349aa43d71c0d (patch) | |
tree | cd0bf472181add51457d50bf6b327a5658920294 /indra/llfilesystem/lldir.cpp | |
parent | 479a23af5ed53256d52c93885315478be7a6ad53 (diff) |
#4101 Handle boost::filesystem's exceptions
Diffstat (limited to 'indra/llfilesystem/lldir.cpp')
-rw-r--r-- | indra/llfilesystem/lldir.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llfilesystem/lldir.cpp b/indra/llfilesystem/lldir.cpp index 99d4850610..b80243c22e 100644 --- a/indra/llfilesystem/lldir.cpp +++ b/indra/llfilesystem/lldir.cpp @@ -110,9 +110,10 @@ std::vector<std::string> LLDir::getFilesInDir(const std::string &dirname) std::vector<std::string> v; - if (exists(p)) + boost::system::error_code ec; + if (exists(p, ec) && !ec.failed()) { - if (is_directory(p)) + if (is_directory(p, ec) && !ec.failed()) { boost::filesystem::directory_iterator end_iter; for (boost::filesystem::directory_iterator dir_itr(p); |