Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListObjectsAsync Sequence contains no elements #1111

Open
azrng opened this issue Jun 24, 2024 · 0 comments
Open

ListObjectsAsync Sequence contains no elements #1111

azrng opened this issue Jun 24, 2024 · 0 comments

Comments

@azrng
Copy link

azrng commented Jun 24, 2024

I use the ListObjectsAsync method to get a list of the contents of the bucket with the specified prefix. If the contents of the bucket exist, it will output normally. If the method returns no elements, it will report an error

Although similar functionality can be achieved by using Subscribe, the error code is shown below

var client = new MinioClient().WithEndpoint("xxx").WithCredentials("xxx", "xxx")
                                 .WithSSL(false)
                                 .Build();
                                 
var response1 =  await client.ListObjectsAsync(new ListObjectsArgs()
                                              .WithBucket("cr")
                                              .WithPrefix("homeLogo1.png")
                                              .WithRecursive(false));

response1.Dump();

I hope you have time to look it over

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant