From 771feeaa45b5bd18b9f1baeb25eb68e5e066de45 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Wed, 20 Oct 2021 13:14:08 +0200 Subject: Use the non-throwing version of std::fs::create_directories() --- zencore/filesystem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zencore/filesystem.cpp') diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp index 054ba0ae4..8b040b3b2 100644 --- a/zencore/filesystem.cpp +++ b/zencore/filesystem.cpp @@ -174,7 +174,8 @@ CleanDirectory(const wchar_t* DirPath) bool CreateDirectories(const std::filesystem::path& Dir) { - return std::filesystem::create_directories(Dir); + std::error_code ErrorCode; + return std::filesystem::create_directories(Dir, ErrorCode); } bool -- cgit v1.2.3