/**
  * Get a fresh zip filesystem for the given job execution
  *
  * @param JobExecution $jobExecution
  * @param string       $zipName
  *
  * @return Filesystem
  */
 protected function getZipFilesystem(JobExecution $jobExecution, $zipName)
 {
     $zipPath = strtr($this->getRelativeArchivePath($jobExecution), ['%filename%' => $zipName]);
     if (!$this->filesystem->has(dirname($zipPath))) {
         $this->filesystem->createDir(dirname($zipPath));
     }
     return $this->factory->createZip($this->filesystem->getAdapter()->getPathPrefix() . $zipPath);
 }
 /**
  * Get a fresh zip filesystem for the given job execution
  *
  * @param JobExecution $jobExecution
  * @param string       $zipName
  *
  * @return Filesystem
  */
 protected function getZipFilesystem(JobExecution $jobExecution, $zipName)
 {
     return $this->factory->createZip(sprintf('%s/%s', $this->directory, strtr($this->getRelativeArchivePath($jobExecution), array('%filename%' => $zipName))));
 }