You are here

public function ArchiveTar::add 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::add()

This method add the files / directories that are listed in $p_filelist in the archive. If the archive does not exist it is created. The method return false and a PEAR error text. The files and directories listed are only added at the end of the archive, even if a file with the same name is already archived. See also createModify() method for more details.

@access public

Parameters

array $p_filelist An array of filenames and directory names, or a: single string with names separated by a single blank space.

Return value

true on success, false on error.

See also

createModify()

File

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

Class

ArchiveTar

Namespace

Drupal\Core\Archiver

Code

public function add($p_filelist) {
  return $this
    ->addModify($p_filelist, '', '');
}