diff options
author | ihm-tswow <76849026+ihm-tswow@users.noreply.github.com> | 2021-05-05 15:36:26 -0400 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-03-09 14:20:25 +0100 |
commit | 56f0129ff3e27fcde1a55fd9cdc5480f3ac76966 (patch) | |
tree | 2008225c63fc72c7f4d7385297869745169b0d0c | |
parent | f7956ffd1ea5e329caf79756e75c2016a7306185 (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.
(cherry picked from commit 471e5af32d24f99bea987ea4705f0165c9ece4d6)
-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 eaabe685321..4e2ded6b14f 100644 --- a/src/server/game/Scripting/ScriptReloadMgr.cpp +++ b/src/server/game/Scripting/ScriptReloadMgr.cpp @@ -612,7 +612,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()); |