Tar::__construct

public function Tar::__construct

public Tar::__construct($file_path)

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\Core\Archiver\ArchiverException

File

core/lib/Drupal/Core/Archiver/Tar.php, line 27

Class

Tar
Defines a archiver implementation for .tar files.

Namespace

Drupal\Core\Archiver

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Archiver!Tar.php/function/Tar::__construct/8.1.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部