public function ArchiverTar::add in Drupal 7
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 - Archiver implementations provided by the system module.
Class
- ArchiverTar
- Archiver for .tar files.
Code
public function add($file_path) {
$this->tar
->add($file_path);
return $this;
}