Fix error when creating a temporary folder

Try to create the user's temporary directory, in case it doesn't already
exist. No test for this since it's in reaction to external system config
that's out of LOOT's control. Fixes #561.
This commit is contained in:
Oliver Hamlet
2016-07-12 18:47:01 +01:00
parent e36113c555
commit d74b092500
+3
View File
@@ -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);