Fix fs::create_path
Don't try to create already existing parents
This commit is contained in:
+1
-1
@@ -543,7 +543,7 @@ bool fs::create_path(const std::string& path)
|
|||||||
{
|
{
|
||||||
const std::string parent = get_parent_dir(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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user