JArchive
An Archive handling class
package |
Joomla.Platform |
---|---|
subpackage |
FileSystem |
since |
11.1 |
Methods
extract
Extract an archive file to a directory.
extract(string $archivename, string $extractdir) : boolean
static
since |
11.1 |
---|
Arguments
- $archivename
string
The name of the archive file- $extractdir
string
Directory to unpack into
Response
boolean
True for success
getAdapter
Get a file compression adapter.
getAdapter(string $type) : object
static
since |
11.1 |
---|
Arguments
- $type
string
The type of adapter (bzip2|gzip|tar|zip).
Response
object
JObject