How to list files in different S3 buckets


#1

When I do S3.listBuckets(), I get the following:
["c3--XXX-qa-input", "c3--sbox-XXX-prod", "c3--XXX-qa-output", ...]

When I do S3.listFiles(), I get the following:
s3://c3--sbox-XXX-prod/00001.json.gz,
s3://c3--sbox-XXX-prod/00002.json.gz,
s3://c3--sbox-XXX-prod/00003.json.gz,
...

How can I list files in c3--XXX-qa-input?
S3.listFiles(urlOrEncodedPath="c3--XXX-qa-input") returns undefined. I know there are files.


#2

You can simply do:

S3.listFiles("s3://c3--XXX-qa-input/")