public function Tar::__construct

Constructs a Tar object.

Parameters

string $file_path: The full system path of the archive to manipulate. Only local files are supported. If the file does not yet exist, it will be created if appropriate.

Throws

Drupal\Component\Archiver\ArchiverException

File

drupal/core/lib/Drupal/Component/Archiver/Tar.php, line 32
Definition of Drupal\Component\Archiver\Tar.

Class

Tar
Defines a archiver implementation for .tar files.

Namespace

Drupal\Component\Archiver

Code

public function __construct($file_path) {
  $this->tar = new ArchiveTar($file_path);
}