1 system.archiver.inc | public ArchiverTar::add($file_path) |
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
- core/
modules/ system/ system.archiver.inc, line 23 - 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;
}