getRealPath()); // no links allowed here for now if ($item->isLink()) { continue; } // no items that are relavitely the same are allowed if (in_array($relativeItem, $relativeItems)) { continue; } $relativeItems[] = $relativeItem; $files[] = $item->getRealPath(); } } return $files; } }