function Archive_Tar::_isArchive

Parameters

string $p_filename:

Return value

bool

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

File

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

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.