File
 
   - drupal/core/lib/Drupal/Component/Archiver/ArchiveTar.php, line 764
 
  
  Class
  
  - ArchiveTar 
 
  - Creates a (compressed) Tar archive
 
  Namespace
  Drupal\Component\Archiver
Code
function _close() {
  
  if (is_resource($this->_file)) {
    if ($this->_compress_type == 'gz') {
      @gzclose($this->_file);
    }
    else {
      if ($this->_compress_type == 'bz2') {
        @bzclose($this->_file);
      }
      else {
        if ($this->_compress_type == 'none') {
          @fclose($this->_file);
        }
        else {
          $this
            ->_error('Unknown or missing compression type (' . $this->_compress_type . ')');
        }
      }
    }
    $this->_file = 0;
  }
  
  if ($this->_temp_tarname != '') {
    @drupal_unlink($this->_temp_tarname);
    $this->_temp_tarname = '';
  }
  return true;
}