https://prefect.io logo
s

Sergey Dashko

07/15/2022, 1:09 PM
Hello. Is it possible to use
S3List
task to get list of bucket specifying full path? Whenever I try to provide full path there is an error about bucket not matching some Regex. It works only when I provide plain name of the root bucket like this
test-bucket
but I need content of the directory inside that bucket. How this can be done?
a

Anna Geller

07/15/2022, 1:33 PM
to list buckets, try using boto3 directly:
Copy code
s3_client.list_buckets()
and to list objects:
Copy code
s3_client.list_objects()
s

Sergey Dashko

07/15/2022, 2:56 PM
I see. Thank you
🙌 1
3 Views