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:
ihm-tswow
2021-05-05 15:36:26 -04:00
committed by GitHub
parent 8c0e6e9ee4
commit 471e5af32d

View File

@@ -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());