public function Archive_Tar::_cleanFile

public Archive_Tar::_cleanFile()

Return value

bool

File

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

Class

Archive_Tar

Code

public function _cleanFile() 
 {
  $this->_close();

  // ----- Look for a local copy
  if ($this->_temp_tarname != '') {
    // ----- Remove the local copy but not the remote tarname
    @drupal_unlink($this->_temp_tarname);
    $this->_temp_tarname = '';
  }
  else {
    // ----- Remove the local tarname file
    @drupal_unlink($this->_tarname);
  }
  $this->_tarname = '';

  return true;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.tar.inc/function/Archive_Tar::_cleanFile/7.x