public function ArchiverInterface::add

public ArchiverInterface::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.

File

core/lib/Drupal/Core/Archiver/ArchiverInterface.php, line 24

Class

ArchiverInterface
Defines the common interface for all Archiver classes.

Namespace

Drupal\Core\Archiver

Code

public function add($file_path);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Archiver!ArchiverInterface.php/function/ArchiverInterface::add/8.1.x