Exemple #1
0
 /**
  * @param string $target_file
  * @param array $file_list
  * @param bool $gzip
  * @return bool
  */
 public static function pack($target_file, $file_list, $gzip = false)
 {
     $t = new Tar();
     foreach ($file_list as $item) {
         $t->addFile(self::normalizePath($item));
     }
     $response = $t->toTar(self::normalizePath($target_file), $gzip);
     return $response;
 }