1 system.archiver.inc | public ArchiverZip::listContents() |
Lists all files in the archive.
Return value
An array of file names relative to the root of the archive.:
Overrides ArchiverInterface::listContents
File
- core/
modules/ system/ system.archiver.inc, line 117 - Archiver implementations provided by the system module.
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;
}