get_keys

get_keys(location: str, prefix: str) list[str][source]

Get list of objects at specified location with given prefix.

Method will check in the S3 bucket if the location begins with the s3:// protocol, otherwise it assumes the location is a local path.

Parameters:
  • location – Object location (local path or S3 bucket).

  • prefix – Object key prefix.

Returns:

List of all object keys at location.