aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-08-26 13:37:19 +0200
committerGitHub <[email protected]>2022-08-26 04:37:19 -0700
commit57ba63d2f63847934b8d197a77c1eca292ed6e41 (patch)
treebce9d3038b3eadc83f6b330dee3300509ec550cf /zenserver/cache/structuredcachestore.cpp
parentredefine vcpkg cache naming (diff)
downloadzen-57ba63d2f63847934b8d197a77c1eca292ed6e41.tar.xz
zen-57ba63d2f63847934b8d197a77c1eca292ed6e41.zip
Use "\\?\" prefixed paths and fix hardcoded path delimiters (#149)
* use "\\?\" prefix for windows paths * fix path delimiters * disable vcpkg caching * Workaround for spdlog not being able to create directories prefixed with `\\?\`
Diffstat (limited to 'zenserver/cache/structuredcachestore.cpp')
-rw-r--r--zenserver/cache/structuredcachestore.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp
index 4e7ad522d..76a8707c5 100644
--- a/zenserver/cache/structuredcachestore.cpp
+++ b/zenserver/cache/structuredcachestore.cpp
@@ -871,7 +871,9 @@ ZenCacheDiskLayer::CacheBucket::BuildPath(PathBuilderBase& Path, const IoHash& H
ToHexBytes(HashKey.Hash, sizeof HashKey.Hash, HexString);
Path.Append(m_BucketDir);
- Path.Append(L"/blob/");
+ Path.AppendSeparator();
+ Path.Append(L"blob");
+ Path.AppendSeparator();
Path.AppendAsciiRange(HexString, HexString + 3);
Path.AppendSeparator();
Path.AppendAsciiRange(HexString + 3, HexString + 5);