function ArchiverTar::add

Adds the specified file or directory to the archive.

Parameters

$file_path: The full system path of the file or directory to add. Only local files and directories are supported.

Return value

ArchiverInterface The called object.

Overrides ArchiverInterface::add

File

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

Class

ArchiverTar
Archiver for .tar files.

Code

public function add($file_path) {
  $this->tar
    ->add($file_path);
  return $this;
}

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