Omit . and .. from linix file scanning too

This commit is contained in:
Ted John 2016-10-22 23:09:45 +01:00
parent a9db9528ae
commit 25a7b98be0
1 changed files with 7 additions and 2 deletions

View File

@ -303,8 +303,13 @@ protected:
{
for (int i = 0; i < count; i++)
{
DirectoryChild child = CreateChild(path, namelist[i]);
children.push_back(child);
const struct dirent * node = namelist[i];
if (!String::Equals(node->d_name, ".") &&
!String::Equals(node->d_name, ".."))
{
DirectoryChild child = CreateChild(path, node);
children.push_back(child);
}
}
}
}