Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Tar.php

function Archive_Tar::_cleanFile

Return value

bool

1 call to Archive_Tar::_cleanFile()
Archive_Tar::createModify in vendor/pear/archive_tar/Archive/Tar.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…

File

vendor/pear/archive_tar/Archive/Tar.php, line 967

Class

Archive_Tar
Creates a (compressed) Tar archive

Code

public function _cleanFile() {
    $this->_close();
    // ----- Look for a local copy
    if ($this->_temp_tarname != '') {
        // ----- Remove the local copy but not the remote tarname
        @unlink($this->_temp_tarname);
        $this->_temp_tarname = '';
    }
    else {
        // ----- Remove the local tarname file
        @unlink($this->_tarname);
    }
    $this->_tarname = '';
    return true;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal