You are here

private function TarArchiveWriter::writeFooter in Backup and Migrate 5.0.x

Write a footer to mark the end of the archive.

1 call to TarArchiveWriter::writeFooter()
TarArchiveWriter::closeArchive in src/Core/Service/TarArchiveWriter.php
This will be called when all files have been added.

File

src/Core/Service/TarArchiveWriter.php, line 192

Class

TarArchiveWriter
@package Drupal\backup_migrate\Core\Service

Namespace

Drupal\backup_migrate\Core\Service

Code

private function writeFooter() {

  // Write the last 0 filled block for end of archive.
  $v_binary_data = pack('a1024', '');
  $this->archive
    ->write($v_binary_data);
}