public function dir_rewinddir() { if ($this->dH == -1) { self::$currentListingIndex = 0; } else { return rewinddir($this->dH); } }