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