Continue for loop without call recursive for target
Change-Id: Ibda767ddecfe6582cb02fbc9585cacc35f87894d
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
}
}
- if (this->m_isBasedOnName && ncurrentdir->isInApp())
+ if (this->m_isBasedOnName && ncurrentdir->isInApp()) {
this->m_targetHandler(ncurrentdir);
-
- DEBUG("recurse dir : " << fullpath);
- this->run(ndirptr, ncurrentdir);
+ } else {
+ DEBUG("recurse dir : " << fullpath);
+ this->run(ndirptr, ncurrentdir);
+ }
} else if (result->d_type == DT_REG) {
try {
auto fileptr = File::createIfModified(fullpath, currentdir, this->m_since);