From 471e5af32d24f99bea987ea4705f0165c9ece4d6 Mon Sep 17 00:00:00 2001 From: ihm-tswow <76849026+ihm-tswow@users.noreply.github.com> Date: Wed, 5 May 2021 15:36:26 -0400 Subject: 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. --- src/server/game/Scripting/ScriptReloadMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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()); -- cgit v1.2.3