ArchiverInterface
interface ArchiverInterface (View source)
Defines the common interface for all Archiver classes.
Methods
$this
add(string $file_path)
Adds the specified file or directory to the archive.
$this
remove(string $path)
Removes the specified file from the archive.
$this
extract(string $path, array $files = [])
Extracts multiple files in the archive to the specified path.
array
listContents()
Lists all files in the archive.
Details
$this
add(string $file_path)
Adds the specified file or directory to the archive.
$this
remove(string $path)
Removes the specified file from the archive.
$this
extract(string $path, array $files = [])
Extracts multiple files in the archive to the specified path.
array
listContents()
Lists all files in the archive.