Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions external-import/stream-importer/src/importer/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ def __init__(self):
if "/" in os.environ.get("MINIO_DST_PATH")
else (os.environ.get("MINIO_DST_PATH"), "")
)
# Ensure S3 paths always end in '/'
self.minio_src_path = self.minio_src_path.rstrip("/") + "/"
self.minio_dst_path = self.minio_dst_path.rstrip("/") + "/"
Comment thread
garethhumphriesgkc marked this conversation as resolved.
Outdated
# Reject the unsafe ``src bucket == dst bucket AND dst_path is
# empty`` configuration up front. The ``bucket_exists`` /
# ``make_bucket`` plumbing below cannot defend this case
Expand Down
Loading