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

Breadcrumb

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

function TarDownloader::extract

@inheritDoc

Overrides ArchiveDownloader::extract

File

vendor/composer/composer/src/Composer/Downloader/TarDownloader.php, line 28

Class

TarDownloader
Downloader for tar files: tar, tar.gz or tar.bz2

Namespace

Composer\Downloader

Code

protected function extract(PackageInterface $package, string $file, string $path) : PromiseInterface {
    // Can throw an UnexpectedValueException
    $archive = new \PharData($file);
    $archive->extractTo($path, null, true);
    return \React\Promise\resolve(null);
}

API Navigation

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