diff --git a/src/backend/helpers/git_helper.cpp b/src/backend/helpers/git_helper.cpp index 53e9baa0..d527d854 100644 --- a/src/backend/helpers/git_helper.cpp +++ b/src/backend/helpers/git_helper.cpp @@ -166,6 +166,9 @@ namespace loot { fs::path tempPath = fs::temp_directory_path() / fs::unique_path(); + // Create the temporary parent folder in case it doesn't already exist. + fs::create_directories(tempPath.parent_path()); + //Delete temporary folder in case it already exists. fs::remove_all(tempPath);