Merge branch 'upstream-kwsys' into update-kwsys
This commit is contained in:
commit
391748d57e
|
@ -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) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue