diff options
| author | Rider Linden <rider@lindenlab.com> | 2025-08-24 14:29:24 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-24 14:29:24 -0700 |
| commit | f25c2a56c0c8079163e9ef18f6a9e590341b1e1a (patch) | |
| tree | a3fa4bd843f919575aaddf0928eff38bae7d7b04 /indra/llfilesystem/lldir.cpp | |
| parent | 96023976f5af0b9af8e8d066d9ad4eea213f53ee (diff) | |
| parent | 375158eb6450a0291ec1a0f55714fbf19a8287eb (diff) | |
Merge pull request #4602 from secondlife/rider/release_to_luaedit
Rider/release to luaedit
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); |
