minio/minio-dotnet

Add tag filtering to ListObjects

jan-pokorny opened this issue · 3 comments

Right now there is no way how to filter objects by tag when listing them.

Proposal:
public ListObjectsArgs WithTags(IDictionary<string, string> tags);
public ListObjectsArgs WithTag(string key, string value);

Usage:

var args = new ListObjectsArgs()
    .WithBucket(bucket)
    .WithPrefix(folder)
    .WithTag("category", "image")
    .WithRecursive(true);

@jan-pokorny The S3 API does not provide tag based listing.

Ah, so what are they there for, then?

@jan-pokorny Ask AWS ;)