\Pop\Archive\AdapterTar

Tar archive adapter class

Summary

Methods
Properties
Constants
__construct()
archive()
extract()
addFiles()
listFiles()
No public properties found
No constants found
getFiles()
$archive
$path
$compression
N/A
No private methods found
No private properties found
N/A

Properties

$archive

$archive : \Archive_Tar

Archive_Tar object

Type

\Archive_Tar

$path

$path : string

Archive path

Type

string

$compression

$compression : string

Archive compression

Type

string

Methods

archive()

archive() : mixed

Return the archive object

Returns

mixed

extract()

extract(string  $to = null) : void

Extract an archived and/or compressed file

Parameters

string $to

addFiles()

addFiles(string|array  $files) : void

Create an archive file

Parameters

string|array $files

listFiles()

listFiles(boolean  $full = false) : array

Return a listing of the contents of an archived file

Parameters

boolean $full

Returns

array

getFiles()

getFiles(string  $dir) : array

Get files from the directory

Parameters

string $dir

Returns

array