function ArchiverZip::listContents

Overrides ArchiverInterface::listContents

File

modules/system/system.archiver.inc, line 118

Class

ArchiverZip
Archiver for .zip files.

Code

public function listContents() {
    $files = array();
    for ($i = 0; $i < $this->zip->numFiles; $i++) {
        $files[] = $this->zip
            ->getNameIndex($i);
    }
    return $files;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.