pub async fn list_objects(
client: &Client,
bucket: &str,
prefix: &str,
delimiter: Option<&str>,
continuation_token: Option<&str>,
max_keys: Option<i32>,
) -> Result<ListPage, AppError>Expand description
List objects under prefix in bucket using delimiter="/".
continuation_token chains pages returned by previous calls.
max_keys defaults to 1 000 (the S3 maximum) when None.
Both Contents (objects) and CommonPrefixes (virtual folders) are
mapped into the unified entries list. Virtual folders get
is_prefix = true and are also preserved in common_prefixes.
ยงErrors
Returns AppError::AccessDenied for permission failures, AppError::NotFound
for NoSuchBucket, and AppError::Network for other SDK errors.