summaryrefslogtreecommitdiff
path: root/indra/llfilesystem/lldir.cpp
diff options
context:
space:
mode:
authorFrederick Martian <fredmartian@gmail.com>2025-11-29 15:46:48 +0100
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-12-10 20:33:58 +0200
commit15f9886ee779b2d014f4a386eac34700b3014bec (patch)
tree55060d9dc38da871dc989ef970b41995c7df9725 /indra/llfilesystem/lldir.cpp
parent13a3cf92ca9e647dfc39e761ce0068aa021ca657 (diff)
The returned vector should only contain filenames, not the entire paths
Diffstat (limited to 'indra/llfilesystem/lldir.cpp')
-rwxr-xr-xindra/llfilesystem/lldir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llfilesystem/lldir.cpp b/indra/llfilesystem/lldir.cpp
index 4c51cc12ab..d36df99c14 100755
--- a/indra/llfilesystem/lldir.cpp
+++ b/indra/llfilesystem/lldir.cpp
@@ -106,7 +106,7 @@ std::vector<std::string> LLDir::getFilesInDir(const std::string &dirname)
{
if (std::filesystem::is_regular_file(dir_itr->status()))
{
- v.push_back(dir_itr->path().string());
+ v.push_back(dir_itr->path().filename().string());
}
}
}