mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-12 11:07:20 +00:00
issue-5757: s3-prefix-fix-added (#5876)
* issue-5757: s3-prefix-fix-added * updated-f-string-in-prefix
This commit is contained in:
parent
c4d71adc5e
commit
f3a6a405b6
@ -170,7 +170,7 @@ class DatalakeSource(Source[Entity]):
|
||||
def get_s3_files(self, bucket_name, prefix):
|
||||
kwargs = {"Bucket": bucket_name}
|
||||
if prefix:
|
||||
kwargs["prefix"] = prefix
|
||||
kwargs["Prefix"] = prefix if prefix.endswith("/") else f"{prefix}/"
|
||||
for key in self.client.list_objects(**kwargs)["Contents"]:
|
||||
try:
|
||||
if filter_by_table(
|
||||
|
Loading…
x
Reference in New Issue
Block a user