protected function _zipFolder() { $src = $this->_dst; $filepath = $src . '/' . $this->_zipname . '.zip'; Core_Model_Directory::zip($src, $filepath); if (!file_exists($filepath)) { throw new Exception('An error occurred during the creation of the archive (' . $filepath . ')'); } return $filepath; }
protected function _zipFolder() { $src = $this->_base_dst; $name = $this->_zipname; Core_Model_Directory::zip($this->_base_dst, $src . '/' . $this->_zipname . '.zip'); // shell_exec('cd "'.$src.'"; zip -r ./'.$name.'.zip ./*'); // // if(!file_exists($src.'/'.$name.'.zip')) { // throw new Exception('An error occured while creating the archive ('.$src.'/'.$name.'.zip)'); // } return $src . '/' . $name . '.zip'; }
protected function _zipFolder() { $src = $this->_dst; Core_Model_Directory::zip($src, $src . '/' . $this->_zipname . '.zip'); if (!file_exists($src . '/' . $this->_zipname . '.zip')) { throw new Exception($this->_("An error occurred while creating the archive (%s)", $src . "/" . $this->_zipname . ".zip")); } return $src . '/' . $this->_zipname . '.zip'; }