/** * Saves file * * @param $filename * * @return bool */ public function save($filename) { $res = $this->zip->archive($this->tempDir, $filename); (new FileHelper())->removeDirectory($this->tempDir); return $res; }