Skip to content
Snippets Groups Projects
Commit 146f6b36 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'Directory-error-handling'


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

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !189
parents 897d2cb1 25775078
No related branches found
No related tags found
1 merge request!189Glob: Do not warn if top-level directory does not exist
......@@ -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