mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
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.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user