mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-10 23:38:38 -05:00
Fix error that appears when creating directories on first start
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user