public function read() { if ($this->dir == null) { return false; } do { $sName = $this->dir->read(); } while (path::isDots($sName)); if ($sName === false) { $this->close(); return false; } $this->sName = $sName; return true; }