Skip to content
Snippets Groups Projects
Commit 25775078 authored by Brad King's avatar Brad King
Browse files

Glob: Do not warn if top-level directory does not exist

parent e093a985
No related branches found
No related tags found
No related merge requests found
......@@ -286,7 +286,9 @@ void Glob::ProcessDirectory(std::string::size_type start,
// std::cout << "ProcessDirectory: " << dir << std::endl;
bool last = (start == this->Internals->Expressions.size() - 1);
if (last && this->Recurse) {
this->RecurseDirectory(start, dir, messages);
if (kwsys::SystemTools::FileIsDirectory(dir)) {
this->RecurseDirectory(start, dir, messages);
}
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment