Search code examples
globboto3

filter a glob-like regex pattern in boto3


Can I use boto3's filter tool for finding keys (technically sub-keys) in a bucket akin to files in a directory using glob?

I want to get a list of keys with a pattern like this "key/**/<pattern>/**.gz".


Solution

  • Unfortunately not. S3 provides no server-side support for filtering of results (other than by prefix and delimiter).