Fix fs::create_path

Don't try to create already existing parents
This commit is contained in:
Nekotekina 2019-09-24 16:17:24 +03:00
parent 4de301a961
commit 8f47f9517a

View File

@ -543,7 +543,7 @@ bool fs::create_path(const std::string& path)
{
const std::string parent = get_parent_dir(path);
if (!parent.empty() && !create_path(parent))
if (!parent.empty() && !is_dir(parent) && !create_path(parent))
{
return false;
}