Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Tar.php

function Archive_Tar::create

This method creates the archive file and add the files / directories that are listed in $p_filelist. If a file with the same name exist and is writable, it is replaced by the new tar. The method return false and a PEAR error text. The $p_filelist parameter can be an array of string, each string representing a filename or a directory name with their path if needed. It can also be a single string with names separated by a single blank. For each directory added in the archive, the files and sub-directories are also added. See also createModify() method for more details.

Parameters

array $p_filelist An array of filenames and directory names, or a: single string with names separated by a single blank space.

Return value

bool true on success, false on error.

See also

createModify()

File

vendor/pear/archive_tar/Archive/Tar.php, line 286

Class

Archive_Tar
Creates a (compressed) Tar archive

Code

public function create($p_filelist) {
    return $this->createModify($p_filelist, '', '');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal