Skip to content

Commit 48faa9d

Browse files
authored
fix: remove trailing slash when uploading to S3 with dataset_builder.to_csv_file (#4570)
1 parent 6f36b9c commit 48faa9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sagemaker/feature_store/dataset_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def to_csv_file(self) -> Tuple[str, str]:
427427
if isinstance(self._base, pd.DataFrame):
428428
temp_id = utils.unique_name_from_base("dataframe-base")
429429
local_file_name = f"{temp_id}.csv"
430-
desired_s3_folder = f"{self._output_path}/{temp_id}"
430+
desired_s3_folder = os.path.join(self._output_path, temp_id)
431431
self._base.to_csv(local_file_name, index=False, header=False)
432432
s3.S3Uploader.upload(
433433
local_path=local_file_name,

0 commit comments

Comments
 (0)