public function Archive_Tar::_isArchive

Parameters

string $p_filename:

Return value

bool

4 calls to Archive_Tar::_isArchive()
Archive_Tar::addModify in drupal/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/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/modules/system/system.tar.inc
Archive_Tar::_extractList in drupal/modules/system/system.tar.inc

File

drupal/modules/system/system.tar.inc, line 803

Class

Archive_Tar

Code

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