def _download(self, source, destination): download_info = self._get_download_info(source) storage_type = GenomeSpaceClient.GENOMESPACE_URL_REGEX.match(source).group(4) handler = storage_handlers.create_handler(storage_type) handler.download(download_info, destination)
def _upload(self, source, destination): upload_info = self._get_upload_info(destination) handler = storage_handlers.create_handler(upload_info.get("uploadType")) handler.upload(source, upload_info)