function Archive_Tar::_isArchive

7.x system.tar.inc Archive_Tar::_isArchive($p_filename = NULL)
4 calls to Archive_Tar::_isArchive()
Archive_Tar::addModify in drupal-7.x/modules/system/system.tar.inc
This method add the files / directories listed in $p_filelist at the end of the existing archive. If the archive does not yet exists it is created. The $p_filelist parameter can be an array of string, each string representing a filename or a directory…
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::_addFile in drupal-7.x/modules/system/system.tar.inc
Archive_Tar::_extractList in drupal-7.x/modules/system/system.tar.inc

File

drupal-7.x/modules/system/system.tar.inc, line 649

Class

Archive_Tar
Creates a (compressed) Tar archive *

Code

function _isArchive($p_filename = NULL) 
 {
  if ($p_filename == NULL) {
    $p_filename = $this->_tarname;
  }
  clearstatcache();
  return @is_file($p_filename) && !@is_link($p_filename);
}