Example #1
0
 private function deleteTempDir(Gpf_Io_File $dir){
     $dir->emptyFiles(true);
     $dir->rmdir();
 }
 private function packBanner($cacheFolderPath, $cacheZipFolderPath, $affiliate, $fileName) {
     $archiveName = $cacheZipFolderPath . '/' . $fileName;
     $archive = new PclZip($archiveName);
     $archive->create($cacheZipFolderPath, PCLZIP_OPT_REMOVE_PATH, $cacheZipFolderPath);
     $dirToBeDeleted = new Gpf_Io_File($cacheZipFolderPath);
     $dirToBeDeleted->emptyFiles(true, array($fileName));
     return $archiveName;
 }