public function TarArchiveReader::extractTo in Backup and Migrate 5.0.x
Extract all files to the given directory.
Parameters
$directory:
Return value
mixed
Overrides ArchiveReaderInterface::extractTo
File
- src/
Core/ Service/ TarArchiveReader.php, line 46
Class
- TarArchiveReader
- @package Drupal\backup_migrate\Core\Service
Namespace
Drupal\backup_migrate\Core\ServiceCode
public function extractTo($directory) {
$this->archive
->openForRead(TRUE);
$result = $this
->extractAllToDirectory($directory);
$this->archive
->close();
return $result;
}