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

Breadcrumb

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

function Tar::extract

Overrides ArchiverInterface::extract

File

core/lib/Drupal/Core/Archiver/Tar.php, line 62

Class

Tar
Defines an archiver implementation for .tar files.

Namespace

Drupal\Core\Archiver

Code

public function extract($path, array $files = []) {
    if ($files) {
        $this->tar
            ->extractList($files, $path, '', FALSE, FALSE);
    }
    else {
        $this->tar
            ->extract($path, FALSE, FALSE);
    }
    return $this;
}

API Navigation

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