You are here

public function ArchiveTar::_append in Zircon Profile 8.0

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

Parameters

$p_filelist:

string $p_add_dir:

string $p_remove_dir:

Return value

bool

1 call to ArchiveTar::_append()
ArchiveTar::addModify in core/lib/Drupal/Core/Archiver/ArchiveTar.php
This method add the files / directories listed in $p_filelist at the end of the existing archive. If the archive does not yet exists it is created. The $p_filelist parameter can be an array of string, each string representing a filename or a directory…

File

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

Class

ArchiveTar

Namespace

Drupal\Core\Archiver

Code

public function _append($p_filelist, $p_add_dir = '', $p_remove_dir = '') {
  if (!$this
    ->_openAppend()) {
    return false;
  }
  if ($this
    ->_addList($p_filelist, $p_add_dir, $p_remove_dir)) {
    $this
      ->_writeFooter();
  }
  $this
    ->_close();
  return true;
}