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

2 methods override ArchiverInterface::add()
ArchiverTar::add in drupal/modules/system/system.archiver.inc
Adds the specified file or directory to the archive.
ArchiverZip::add in drupal/modules/system/system.archiver.inc
Adds the specified file or directory to the archive.

File

drupal/includes/archiver.inc, line 33
Shared classes and interfaces for the archiver system.

Class

ArchiverInterface
Defines the common interface for all Archiver classes.

Code

public function add($file_path);