You are here

public function ArchiverTar::__construct in Drupal 7

Constructs a new archiver instance.

Parameters

$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.

Overrides ArchiverInterface::__construct

File

modules/system/system.archiver.inc, line 20
Archiver implementations provided by the system module.

Class

ArchiverTar
Archiver for .tar files.

Code

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