diff --git a/pillar/api/file_storage_backends/gcs.py b/pillar/api/file_storage_backends/gcs.py index e2785af3..780aaa99 100644 --- a/pillar/api/file_storage_backends/gcs.py +++ b/pillar/api/file_storage_backends/gcs.py @@ -97,7 +97,7 @@ class GoogleCloudStorageBucket(Bucket): def _gcs_post(self, full_path, *, path=None) -> typing.Optional[gcloud.storage.Blob]: """Create new blob and upload data to it. """ - path = path if path else os.path.join('_', os.path.basename(full_path)) + path = path if path else os.path.join(self.subdir, os.path.basename(full_path)) gblob = self._gcs_bucket.blob(path) if gblob.exists(): self._log.error(f'Trying to upload to {path}, but that blob already exists. '