From 8f47f9517a35e2419d86872f8662eb23f92f588f Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Tue, 24 Sep 2019 16:17:24 +0300 Subject: [PATCH] Fix fs::create_path Don't try to create already existing parents --- Utilities/File.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/File.cpp b/Utilities/File.cpp index 76c71831d4..337e4b4799 100644 --- a/Utilities/File.cpp +++ b/Utilities/File.cpp @@ -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; }