You are here

public function ArchiveTar::_writeFooter in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Archiver/ArchiveTar.php \Drupal\Core\Archiver\ArchiveTar::_writeFooter()

Return value

bool

3 calls to ArchiveTar::_writeFooter()
ArchiveTar::addString in core/lib/Drupal/Core/Archiver/ArchiveTar.php
This method add a single string as a file at the end of the existing archive. If the archive does not yet exists it is created.
ArchiveTar::createModify in core/lib/Drupal/Core/Archiver/ArchiveTar.php
This method creates the archive file and add the files / directories that are listed in $p_filelist. If the file already exists and is writable, it is replaced by the new tar. It is a create and not an add. If the file exists and is read-only or is a…
ArchiveTar::_append in core/lib/Drupal/Core/Archiver/ArchiveTar.php

File

core/lib/Drupal/Core/Archiver/ArchiveTar.php, line 1156

Class

ArchiveTar

Namespace

Drupal\Core\Archiver

Code

public 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;
}