public function extractFiles($outputFolder, $files = null, $expandFilesList = false)
    {
        if ($files !== null) {
            if (is_string($files)) $files = [$files];

            if ($expandFilesList)
                $files = self::expandFileList($this->files, $files);

            return $this->archive->extractFiles($outputFolder, $files);
        } else {
            return $this->archive->extractArchive($outputFolder);
        }
    }
public function extractFiles($outputFolder, $files = null, $expandFilesList = false)
    {
        if ($files !== null) {
            if (is_string($files)) $files = [$files];

            if ($expandFilesList)
                $files = self::expandFileList($this->files, $files);

            return $this->archive->extractFiles($outputFolder, $files);
        } else {
            return $this->archive->extractArchive($outputFolder);
        }
    }
public function extractFiles ( $ outputFolder , $ files = null , $ expandFilesList = false ) { if ( $ files !== null ) { if ( is_string ( $ files ) ) $ files = [ $ files ] ; if ( $ expandFilesList ) $ files = self :: expandFileList ( $ this -> files , $ files ) ; return $ this -> archive -> extractFiles ( $ outputFolder , $ files ) ; } else { return $ this -> archive -> extractArchive ( $ outputFolder ) ; } }
Unpacks files to disk.
@param string $outputFolder Extraction output dir.
@param string|array|null $files One files or list of files or null to extract all content.
@param bool $expandFilesList Should be expanded paths like 'src/' to all files inside 'src/' dir or not.
@return false|int
@throws Exception If files can not be extracted
Unpacks files to disk .