function ArchiveTar::_writeFooter

3 calls to ArchiveTar::_writeFooter()

File

drupal/core/lib/Drupal/Component/Archiver/ArchiveTar.php, line 888

Class

ArchiveTar
Creates a (compressed) Tar archive

Namespace

Drupal\Component\Archiver

Code

function _writeFooter() {
  if (is_resource($this->_file)) {

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