This commit is contained in:
Aaron Liu 2021-05-26 08:49:16 +08:00 committed by Stefan Haustein
parent 9be08513da
commit e69c53e4cc

View file

@ -577,9 +577,9 @@ int main(int argc, char* argv[]) {
} else if (arg[0] == '-') { } else if (arg[0] == '-') {
std::cerr << "Unrecognized argument: " << arg << std::endl; std::cerr << "Unrecognized argument: " << arg << std::endl;
} else { } else {
if (std::experimental::filesystem::is_directory(arg)) { if (std::filesystem::is_directory(arg)) {
for (auto & p : std::experimental::filesystem::directory_iterator(arg)) { for (auto & p : std::filesystem::directory_iterator(arg)) {
if (std::experimental::filesystem::is_regular_file(p.path())) { if (std::filesystem::is_regular_file(p.path())) {
file_names.push_back(p.path().string()); file_names.push_back(p.path().string());
} }
} }