By moving the "isDir" check to the end of checkAndPushDirectory(). The other checks could be done without calling stat(), depending on the implementation. E.g. readdir on Linux (and BSD) fills the d_type field in `struct dirent`, so we know if it's a symlink without stat'ing, but to know if it's a symlink to a dir, we'll have to stat. Thanks to Thiago for pointing this out in code review. Change-Id: Iad9e954413afddfd4eb4890fb475655cda668385 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 104f8b23f236b1abd840eeaa4b82f54412d8a3b5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%