get_object_list#
- brainsets.utils.s3_utils.get_object_list(bucket, prefix, s3_client=None)[source]#
List all object keys under a prefix (excludes directories).
- Parameters:
bucket – S3 bucket name
prefix – Key prefix to filter objects (e.g., “ds005555/”)
s3_client – Optional pre-configured S3 client
- Returns:
List of object keys (relative to the prefix)
- Raises:
RuntimeError – If listing fails
ImportError – If boto3/botocore is not installed.