aboutsummaryrefslogtreecommitdiff
path: root/zencore/filesystem.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-10-20 13:14:08 +0200
committerMartin Ridgers <[email protected]>2021-10-20 13:14:08 +0200
commit771feeaa45b5bd18b9f1baeb25eb68e5e066de45 (patch)
treebcae5855ea0425c4265ce352f0b7913df8a63847 /zencore/filesystem.cpp
parentUse cross-platform ExtPathBuilder instead of ExtWideStrBuilder (diff)
downloadzen-771feeaa45b5bd18b9f1baeb25eb68e5e066de45.tar.xz
zen-771feeaa45b5bd18b9f1baeb25eb68e5e066de45.zip
Use the non-throwing version of std::fs::create_directories()
Diffstat (limited to 'zencore/filesystem.cpp')
-rw-r--r--zencore/filesystem.cpp3
1 files changed, 2 insertions, 1 deletions
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