Check that we created a dir before we return true

develop
Myk Taylor 2020-07-15 22:02:12 -07:00
parent c19fc1f349
commit 1ae341b637
1 changed files with 1 additions and 1 deletions

@ -94,7 +94,7 @@ static bool mkdir_recursive_impl (std::string path)
return false;
}
}
return Filesystem::mkdir(path) || errno == EEXIST;
return (Filesystem::mkdir(path) || errno == EEXIST) && Filesystem::isdir(path);
}
bool Filesystem::mkdir_recursive (std::string path)