function ArchiveTar::_isArchive

4 calls to ArchiveTar::_isArchive()
ArchiveTar::addModify in drupal/core/lib/Drupal/Component/Archiver/ArchiveTar.php
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…
ArchiveTar::addString in drupal/core/lib/Drupal/Component/Archiver/ArchiveTar.php
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.
ArchiveTar::_addFile in drupal/core/lib/Drupal/Component/Archiver/ArchiveTar.php
ArchiveTar::_extractList in drupal/core/lib/Drupal/Component/Archiver/ArchiveTar.php

File

drupal/core/lib/Drupal/Component/Archiver/ArchiveTar.php, line 653

Class

ArchiveTar
Creates a (compressed) Tar archive

Namespace

Drupal\Component\Archiver

Code

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