function Archive_Tar::__destruct

File

modules/system/system.tar.inc, line 279

Class

Archive_Tar

Code

public function __destruct() {
    $this->_close();
    // ----- Look for a local copy to delete
    if ($this->_temp_tarname != '' && (bool) preg_match('/^tar[[:alnum:]]*\\.tmp$/', $this->_temp_tarname)) {
        @drupal_unlink($this->_temp_tarname);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.