Pop\Archive\Adapter\Zip::listFiles PHP Метод

listFiles() публичный Метод

Method to return a listing of the contents of an archived file
public listFiles ( boolean $full = false ) : array
$full boolean
Результат array
    public function listFiles($full = false)
    {
        $files = array();
        $list = array();
        if ($this->archive->open($this->path) === true) {
            $i = 0;
            while ($this->archive->statIndex($i)) {
                $list[] = $this->archive->statIndex($i);
                $i++;
            }
        }
        if (!$full) {
            foreach ($list as $file) {
                $files[] = $file['name'];
            }
        } else {
            $files = $list;
        }
        return $files;
    }