Fix #101
This commit is contained in:
parent
9be08513da
commit
e69c53e4cc
1 changed files with 3 additions and 3 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue