public function scandir($hash) { if (($dir = $this->dir($hash)) == false) { return false; } return $dir['read'] ? $this->getScandir($this->decode($hash)) : $this->setError(elFinder::ERROR_PERM_DENIED); }