Merge branch 'upstream-kwsys' into update-kwsys

This commit is contained in:
Brad King 2015-01-24 07:38:51 -05:00
commit 391748d57e
1 changed files with 5 additions and 0 deletions

View File

@ -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) )
{