elFinder\elFinderVolumeDriver::ls PHP Method

ls() public method

Return dir files names list
Author: Dmitry (dio) Levashov
public ls ( string $hash ) : array
$hash string file hash
return array
    public function ls($hash)
    {
        if (($dir = $this->dir($hash)) == false || !$dir['read']) {
            return false;
        }
        $list = array();
        $path = $this->decode($hash);
        foreach ($this->getScandir($path) as $stat) {
            if (empty($stat['hidden']) && $this->mimeAccepted($stat['mime'])) {
                $list[] = $stat['name'];
            }
        }
        return $list;
    }