public function listFiles($full = false)
{
$files = array();
$list = array();
if ($this->archive->open($this->path) === true) {
$i = 0;
while ($this->archive->statIndex($i)) {
$list[] = $this->archive->statIndex($i);
$i++;
}
}
if (!$full) {
foreach ($list as $file) {
$files[] = $file['name'];
}
} else {
$files = $list;
}
return $files;
}