List the names of keys available within a bucket.
This method is primarily meant for obtaining a "recursive directory listing" rooted under the specified bucket and prefix location.
@param bucket name of the bucket whose objects should be listed.
@param prefix common prefix to filter the results by. Must not be null. Supplying the empty string will list all keys in the bucket. Supplying a non-empty string will act as though a trailing '/' appears in prefix, even if it does not.
@return list of keys starting with prefix
, after removingprefix
(or prefix + "/"
)from all of them.
@throws IOException sending the request was not possible, or the response XML document could not be parsed properly.