Commit f4ceac5b authored by Oleg Korshul's avatar Oleg Korshul

.

parent 61be4ea1
......@@ -597,7 +597,12 @@ public:
std::wstring sTime = QDateTime::currentDateTime().toString().toStdWString();
NSCommon::string_replace(sTime, L":", L".");
NSFile::CFileBinary::SaveToFile(NSFile::GetProcessDirectory() + L"/report/" + sTime + L".html", oBuilder.GetData(), true);
std::wstring sDirectory = NSFile::GetProcessDirectory() + L"/report";
if (!NSDirectory::Exists(sDirectory))
NSDirectory::CreateDirectory(sDirectory);
NSFile::CFileBinary::SaveToFile(sDirectory + L"/" + sTime + L".html", oBuilder.GetData(), true);
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment