Skip to content

Commit

Permalink
Fix empty filename (#19)
Browse files Browse the repository at this point in the history
Fixed using: file_name = stream_name

(:man_shrugging: )
  • Loading branch information
dror-g authored May 1, 2024
1 parent c6d00e2 commit 45df1d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target_s3/formats/format_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def create_key(self) -> str:
else self.stream_name_path_override
)
folder_path = f"{self.bucket}/{self.prefix}/{stream_name}/"
file_name = ""
file_name = stream_name
if self.config["append_date_to_prefix"]:
grain = DATE_GRAIN[self.config["append_date_to_prefix_grain"].lower()]
partition_name_enabled = False
Expand Down

0 comments on commit 45df1d7

Please sign in to comment.