public function Tar::add in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Archiver/Tar.php \Drupal\Core\Archiver\Tar::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\Core\Archiver\ArchiverInterface The called object.
Overrides ArchiverInterface::add
File
- core/
lib/ Drupal/ Core/ Archiver/ Tar.php, line 39 - Contains \Drupal\Core\Archiver\Tar.
Class
- Tar
- Defines a archiver implementation for .tar files.
Namespace
Drupal\Core\ArchiverCode
public function add($file_path) {
$this->tar
->add($file_path);
return $this;
}