Skip . and .. when generating trees.

Fixes #2012
This commit is contained in:
mark_story 2011-09-22 21:14:13 -04:00
parent 0bcb8d0dfa
commit 155968349f

View file

@ -413,6 +413,9 @@ class Folder {
if ($skipHidden && $name[0] === '.' || isset($exceptions[$name])) {
continue;
}
if ($name === '.' || $name === '..') {
continue;
}
if ($item->isFile()) {
$files[] = $item->getPathName();
} else if ($item->isDir()) {