Skip to content

Commit

Permalink
fix upload folder
Browse files Browse the repository at this point in the history
  • Loading branch information
lruizcalico committed Oct 26, 2023
1 parent b767bdf commit 98f1e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/baskerville/helpers/gcs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def upload_folder_gcs(local_dir: str, gcs_dir: str) -> None:
"""
storage_client = _get_storage_client()
bucket_name = gcs_dir.split("//")[1].split("/")[0]
gcs_object_prefix = join(gcs_dir.split("//")[1].split("/")[1:])
gcs_object_prefix = '/'.join(gcs_dir.split("//")[1].split("/")[1:])
local_prefix = local_dir.split("/")[-1]
bucket = storage_client.bucket(bucket_name)
for filename in os.listdir(local_dir):
Expand Down

0 comments on commit 98f1e88

Please sign in to comment.