diff options
| author | Martin Ridgers <[email protected]> | 2021-10-20 13:14:08 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-10-20 13:14:08 +0200 |
| commit | 771feeaa45b5bd18b9f1baeb25eb68e5e066de45 (patch) | |
| tree | bcae5855ea0425c4265ce352f0b7913df8a63847 /zencore/filesystem.cpp | |
| parent | Use cross-platform ExtPathBuilder instead of ExtWideStrBuilder (diff) | |
| download | zen-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.cpp | 3 |
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 |