From 214719ff37cb8df4fae56b5b478d7ddac8037362 Mon Sep 17 00:00:00 2001 From: Maurice Heumann Date: Wed, 27 Nov 2019 18:52:07 +0100 Subject: [PATCH] Fix code --- 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 476a3c9..e09f10a 100644 --- a/src/utils/io.cpp +++ b/src/utils/io.cpp @@ -80,24 +80,24 @@ namespace utils::io bool create_directory(const std::string& directory) { - return std::experimental::filesystem::create_directories(directory); + return std::filesystem::create_directories(directory); } bool directory_exists(const std::string& directory) { - return std::experimental::filesystem::is_directory(directory); + return std::filesystem::is_directory(directory); } bool directory_is_empty(const std::string& directory) { - return std::experimental::filesystem::is_empty(directory); + return std::filesystem::is_empty(directory); } std::vector list_files(const std::string& directory) { std::vector files; - for (auto& file : std::experimental::filesystem::directory_iterator(directory)) + for (auto& file : std::filesystem::directory_iterator(directory)) { files.push_back(file.path().generic_string()); }