You are here

public function ArchiveTar::listContent in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Archiver/ArchiveTar.php \Drupal\Core\Archiver\ArchiveTar::listContent()

Return value

array|int

File

core/lib/Drupal/Core/Archiver/ArchiveTar.php, line 369

Class

ArchiveTar

Namespace

Drupal\Core\Archiver

Code

public function listContent() {
  $v_list_detail = array();
  if ($this
    ->_openRead()) {
    if (!$this
      ->_extractList('', $v_list_detail, "list", '', '')) {
      unset($v_list_detail);
      $v_list_detail = 0;
    }
    $this
      ->_close();
  }
  return $v_list_detail;
}