get_object_list#

torch_brain.utils.s3.get_object_list(bucket, prefix, s3_client=None)[source]#

List all object keys under a prefix (excludes directories).

Parameters:
  • bucket (str) – S3 bucket name

  • prefix (str) – Key prefix to filter objects (e.g., “ds005555/”)

  • s3_client (Optional[BaseClient]) – Optional pre-configured S3 client

Return type:

list[str]

Returns:

List of object keys (relative to the prefix)

Raises: