Beispiel #1
0
 /**
  * Extract file to given file path (real OS filesystem), existing files are overwritten.
  *
  * @param file_packer $packer file packer instance
  * @param string $pathname target directory
  * @return array|bool list of processed files; false if error
  */
 public function extract_to_pathname(file_packer $packer, $pathname)
 {
     $archivefile = $this->get_content_file_location();
     return $packer->extract_to_pathname($archivefile, $pathname);
 }
Beispiel #2
0
 /**
  * Extract file to given file path (real OS filesystem), existing files are overwritten.
  *
  * @param file_packer $packer file packer instance
  * @param string $pathname target directory
  * @param file_progress $progress Progress indicator callback or null if not required
  * @return array|bool list of processed files; false if error
  */
 public function extract_to_pathname(file_packer $packer, $pathname, file_progress $progress = null)
 {
     $archivefile = $this->get_content_file_location();
     return $packer->extract_to_pathname($archivefile, $pathname, null, $progress);
 }