public function ArchiverInterface::add

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\Component\Archiver\ArchiverInterface The called object.

2 methods override ArchiverInterface::add()
Tar::add in drupal/core/lib/Drupal/Component/Archiver/Tar.php
Implements Drupal\Component\Archiver\ArchiveInterface::add().
Zip::add in drupal/core/lib/Drupal/Component/Archiver/Zip.php
Implements Drupal\Component\Archiver\ArchiveInterface::add().

File

drupal/core/lib/Drupal/Component/Archiver/ArchiverInterface.php, line 25
Definition of Drupal\Component\Archiver\ArchiverInterface.

Class

ArchiverInterface
Defines the common interface for all Archiver classes.

Namespace

Drupal\Component\Archiver

Code

public function add($file_path);