示例#1
0
 /**
  * Extract the archive contents (emulate \ZipArchive)
  *
  * @param string $destination
  * @param string|array $entries
  * @return bool
  * @since 0.10.0
  */
 public function extractTo($destination, $entries = null)
 {
     if (!is_dir($destination)) {
         return false;
     }
     if (!$this->usePclzip) {
         return $this->zip->extractTo($destination, $entries);
     } else {
         return $this->pclzipExtractTo($destination, $entries);
     }
 }