From 875bc6679affa21d66b01f893e4ec5e999cae45b Mon Sep 17 00:00:00 2001 From: RektInator Date: Wed, 2 Oct 2019 11:37:08 +0200 Subject: [PATCH] [IO] std::filesystem is no longer experimental --- src/Utils/IO.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Utils/IO.cpp b/src/Utils/IO.cpp index e2d30dc0..7310b529 100644 --- a/src/Utils/IO.cpp +++ b/src/Utils/IO.cpp @@ -81,24 +81,24 @@ namespace Utils bool CreateDir(const std::string& dir) { - return std::experimental::filesystem::create_directories(dir); + return std::filesystem::create_directories(dir); } bool DirectoryExists(const std::string& directory) { - return std::experimental::filesystem::is_directory(directory); + return std::filesystem::is_directory(directory); } bool DirectoryIsEmpty(const std::string& directory) { - return std::experimental::filesystem::is_empty(directory); + return std::filesystem::is_empty(directory); } std::vector ListFiles(const std::string& dir) { std::vector files; - for (auto& file : std::experimental::filesystem::directory_iterator(dir)) + for (auto& file : std::filesystem::directory_iterator(dir)) { files.push_back(file.path().generic_string()); }