示例#1
0
 def _upload_application_zip(self, app: Entity, path: str):
     _logger.debug('Unzipping file %s', path)
     tmp_dir = tempfile.mkdtemp()
     try:
         FileHelper.unzip(path, tmp_dir)
         self._upload_application_directory(app, tmp_dir)
     finally:
         shutil.rmtree(tmp_dir)
 def unzip(self):
     FileHelper.unzip(os.path.join(self.input_dirpath, 'myzip.zip'),
                      self.output_dirpath)