I am using aws-sdk using node.js. I want to list images in specified folder e.g.
Folders are illusory, but S3 does provide a mechanism to emulate their existence.
If you set Delimiter
to /
then each tier of responses will also return a CommonPrefixes
array of the next tier of "folders," which you'll append to the prefix from this request, to retrieve the next tier.
If your Prefix
is a "folder," append a trailing slash. Otherwise, you'll make an unnecessary request, because the first request will return one common prefix. E.g., folder "foo" will return one common prefix "foo/".