Tar::add

public Tar::add($file_path)

Adds the specified file or directory to the archive.

Parameters

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

Return value

\Drupal\Core\Archiver\ArchiverInterface The called object.

Overrides ArchiverInterface::add

File

core/lib/Drupal/Core/Archiver/Tar.php, line 34

Class

Tar
Defines a archiver implementation for .tar files.

Namespace

Drupal\Core\Archiver

Code

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

  return $this;
}
doc_Drupal
2016-10-29 09:46:16
Comments
Leave a Comment

Please login to continue.