public function current() { $fileName = realpath($this->data[$this->position]); return new SplFileInfo($fileName, '', basename($fileName)); }