diff options
author | ihm-tswow <76849026+ihm-tswow@users.noreply.github.com> | 2021-05-05 15:36:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-05 21:36:26 +0200 |
commit | 471e5af32d24f99bea987ea4705f0165c9ece4d6 (patch) | |
tree | b3b74a3fb54d891241e35569c3911dc7016c7525 /src/server/game | |
parent | 8c0e6e9ee454c0a429a8a7b54d281d3378773e64 (diff) |
Core/Game: Fix cache path with git flow branches (#26494)
- git flow may put forward slashes in branch names, so we cannot assume we are just creating one directory.
Diffstat (limited to 'src/server/game')
-rw-r--r-- | src/server/game/Scripting/ScriptReloadMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Scripting/ScriptReloadMgr.cpp b/src/server/game/Scripting/ScriptReloadMgr.cpp index 580642dde66..025a1d9177c 100644 --- a/src/server/game/Scripting/ScriptReloadMgr.cpp +++ b/src/server/game/Scripting/ScriptReloadMgr.cpp @@ -610,7 +610,7 @@ public: boost::system::error_code code; if ((!fs::exists(temporary_cache_path_, code) || (fs::remove_all(temporary_cache_path_, code) > 0)) && - !fs::create_directory(temporary_cache_path_, code)) + !fs::create_directories(temporary_cache_path_, code)) { TC_LOG_ERROR("scripts.hotswap", "Couldn't create the cache directory at \"%s\".", temporary_cache_path_.generic_string().c_str()); |