Commit acec80b0 authored by Ing. Jan Trávníček's avatar Ing. Jan Trávníček

switch to non-experimental filesystem include

parent 3965b4b8
......@@ -2,7 +2,7 @@
#include "testfiles_basedir.hpp"
#include <exception/CommonException.h>
#include <experimental/filesystem>
#include <filesystem>
std::vector < std::string > TestFiles::Get ( const std::string& regex ) {
return Get ( std::regex ( regex ) );
......@@ -12,7 +12,7 @@ std::vector < std::string > TestFiles::Get ( const std::regex& regex ) {
std::vector < std::string > res;
try {
for ( const std::experimental::filesystem::directory_entry & entry: std::experimental::filesystem::recursive_directory_iterator ( TEST_FILES_BASEDIR ) ) {
for ( const std::filesystem::directory_entry & entry: std::filesystem::recursive_directory_iterator ( TEST_FILES_BASEDIR ) ) {
std::smatch match;
const std::string path = entry.path ( );
......@@ -20,7 +20,7 @@ std::vector < std::string > TestFiles::Get ( const std::regex& regex ) {
res.push_back ( path );
}
}
} catch ( const std::experimental::filesystem::filesystem_error & e ) {
} catch ( const std::filesystem::filesystem_error & e ) {
throw;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment