aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-05-23 14:44:48 +0200
committerGitHub <[email protected]>2022-05-23 14:44:48 +0200
commitdba8b362221188c4e3125e39eb0654613a7d3dd2 (patch)
tree13081a3d19734cd0e284e4a4818adf025ba7c7bd /zenserver/cache/structuredcachestore.cpp
parentAdd catch2 support (#101) (diff)
downloadzen-dba8b362221188c4e3125e39eb0654613a7d3dd2.tar.xz
zen-dba8b362221188c4e3125e39eb0654613a7d3dd2.zip
De/fix namespace folder scanning (#103)
Diffstat (limited to 'zenserver/cache/structuredcachestore.cpp')
-rw-r--r--zenserver/cache/structuredcachestore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp
index da948fd72..7509c5a71 100644
--- a/zenserver/cache/structuredcachestore.cpp
+++ b/zenserver/cache/structuredcachestore.cpp
@@ -2141,7 +2141,7 @@ ZenCacheStore::ZenCacheStore(CasGc& Gc, std::filesystem::path BasePath) : GcStor
std::vector<std::string> Namespaces;
for (const std::filesystem::path& DirPath : DirContent.Directories)
{
- std::string DirName = PathToUtf8(DirPath.stem());
+ std::string DirName = PathToUtf8(DirPath.filename());
if (DirName.starts_with(NamespaceDiskPrefix))
{
Namespaces.push_back(DirName.substr(NamespaceDiskPrefix.length()));