function Archive_Tar::_close
20 calls to Archive_Tar::_close()
- Archive_Tar::addString in drupal-7.x/modules/system/system.tar.inc
- 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.
- Archive_Tar::addString in drupal-7.x/modules/system/system.tar.inc
- 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.
- Archive_Tar::createModify in drupal-7.x/modules/system/system.tar.inc
- 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…
- Archive_Tar::createModify in drupal-7.x/modules/system/system.tar.inc
- 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…
- Archive_Tar::extractInString in drupal-7.x/modules/system/system.tar.inc
- This method extract from the archive one file identified by $p_filename.
The return value is a string with the file content, or NULL on error.
... See full list
Archivo
- drupal-7.x/modules/system/system.tar.inc, line 760
Class
- Archive_Tar
- Creates a (compressed) Tar archive
*
Código
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;
}