def _extract(self, tag: str): archive_path = self._get_archive_path(tag) destination_folder = self.get_directory(tag) if self.archive_type == "tar.gz": utils.untar(archive_path, destination_folder) elif self.archive_type == "zip": utils.unzip(archive_path, destination_folder) else: raise errors.UnknownArchiveType(self.archive_type)
def _extract(self, tag: str): archive_path = self._get_archive_path(tag) destination_folder = self.get_directory(tag) utils.untar(archive_path, destination_folder)
def _extract(self): archive_path = self._get_archive_path() destination_folder = self.get_directory() utils.untar(archive_path, destination_folder)