Skip to content
Snippets Groups Projects
Commit 417c0a75 authored by Kenneth Lausdahl's avatar Kenneth Lausdahl
Browse files

create output dir if missing

parent de050256
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,13 @@ bool Fmu::initialize()
{
this->extractedDirectory = getTempDir();
std::cout << "Extraction directory is: " << *this->extractedDirectory << '\n';
if(!makePath(*this->extractedDirectory))
{
cerr << "Failed to create dir" << endl;
return false;
}
if (this->unpack(path->c_str(), this->extractedDirectory->c_str()))
{
cout << "unzip ok" << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment