You are here

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\Service

Code

public function extractTo($directory) {
  $this->archive
    ->openForRead(TRUE);
  $result = $this
    ->extractAllToDirectory($directory);
  $this->archive
    ->close();
  return $result;
}