public function FlippingBook::extractArchive in Flipping Book 8
Extract uploaded archive.
Parameters
string $file_path: The archive source path.
string $destination: The destination path.
Throws
\Exception
Overrides FlippingBookInterface::extractArchive
File
- src/
FlippingBook.php, line 104
Class
- FlippingBook
- Class FlippingBook.
Namespace
Drupal\flipping_bookCode
public function extractArchive($file_path, $destination) {
$archiver = $this->pluginManagerArchiver
->getInstance([
'filepath' => $file_path,
]);
$archiver
->extract($this->fileSystem
->realpath($destination . '/'));
}