From e69c53e4cc03f370fd335b65ccdeb97d3ece294c Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Wed, 26 May 2021 08:49:16 +0800 Subject: [PATCH] Fix #101 --- src/main/cpp/tiv.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/cpp/tiv.cpp b/src/main/cpp/tiv.cpp index 193bff9..965629c 100644 --- a/src/main/cpp/tiv.cpp +++ b/src/main/cpp/tiv.cpp @@ -577,9 +577,9 @@ int main(int argc, char* argv[]) { } else if (arg[0] == '-') { std::cerr << "Unrecognized argument: " << arg << std::endl; } else { - if (std::experimental::filesystem::is_directory(arg)) { - for (auto & p : std::experimental::filesystem::directory_iterator(arg)) { - if (std::experimental::filesystem::is_regular_file(p.path())) { + if (std::filesystem::is_directory(arg)) { + for (auto & p : std::filesystem::directory_iterator(arg)) { + if (std::filesystem::is_regular_file(p.path())) { file_names.push_back(p.path().string()); } }