Constructs a Zip object.
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.
Drupal\Component\Archiver\ArchiverException
public function __construct($file_path) {
$this->zip = new ZipArchive();
if ($this->zip
->open($file_path) !== TRUE) {
throw new ArchiverException(t('Cannot open %file_path', array(
'%file_path' => $file_path,
)));
}
}