mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
Merge branch 'upstream-kwsys' into update-kwsys
This commit is contained in:
@@ -244,6 +244,11 @@ unsigned long Directory::GetNumberOfFilesInDirectory(const kwsys_stl::string& na
|
||||
{
|
||||
DIR* dir = opendir(name.c_str());
|
||||
|
||||
if (!dir)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned long count = 0;
|
||||
for (kwsys_dirent* d = readdir(dir); d; d = readdir(dir) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user