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; }