Fix error that appears when creating directories on first start

This commit is contained in:
Alexander Bock
2014-12-03 17:19:01 +01:00
parent 47c68ade3c
commit 14051455a5

View File

@@ -313,8 +313,8 @@ bool OpenSpaceEngine::create(int argc, char** argv,
for (auto token : tokens) {
if (!FileSys.directoryExists(token)) {
std::string p = absPath(token);
LDEBUG("Directory '" << p <<"' does not exsist, creating.");
if(FileSys.createDirectory(p, true))
LDEBUG("Directory '" << p <<"' does not exist, creating.");
if(!FileSys.createDirectory(p, true))
LERROR("Directory '" << p <<"' could not be created");
}
}