download_prefix_from_url#

brainsets.utils.s3_utils.download_prefix_from_url(s3_url, target_dir)[source]#

Download all files matching an S3 URL prefix pattern.

Parameters:
  • s3_url (str) – S3 URL prefix pattern (e.g., ‘s3://bucket/prefix’)

  • target_dir (Path) – Local directory to download files to

Return type:

list[Path]

Returns:

List of downloaded file paths

Raises: