diff --git a/data.cpp b/data.cpp index 6ba278fa..abba1496 100755 --- a/data.cpp +++ b/data.cpp @@ -1106,6 +1106,14 @@ void DataManager::Output_Version(void) LOGINFO("Unable to mount '%s' to write version number.\n", Path.c_str()); return; } + + if (!TWFunc::Path_Exists(recoveryCacheDir)) { + LOGINFO("Recreating %s folder.\n", recoveryCacheDir.c_str()); + if (!TWFunc::Create_Dir_Recursive(recoveryCacheDir.c_str(), S_IRWXU | S_IRWXG | S_IWGRP | S_IXGRP, 0, 0)) { + LOGERR("DataManager::Output_Version -- Unable to make %s: %s\n", recoveryCacheDir.c_str(), strerror(errno)); + return; + } + } } if (!TWFunc::Path_Exists(recoveryCacheDir)) { LOGINFO("Recreating %s folder.\n", recoveryCacheDir.c_str());