Beispiel #1
0
 /**
  * Create archive from files
  *
  */
 function FromFiles($type)
 {
     $path = $this->ArchivePath($type);
     $path = $this->ArchivePath($type);
     try {
         $archive = new \gp\tool\Archive($path);
         $archive->Add($this->dir);
     } catch (Exception $e) {
         self::AssertTrue(false, 'FromFiles(' . $type . ') Failed with message: ' . $e->getMessage());
         return;
     }
     $archive->Compress();
     self::AssertFileExists($path);
     return new \gp\tool\Archive($path);
     //return a readable archive
 }