Билд
This commit is contained in:
@@ -205,11 +205,15 @@ public class S3FileStorageService : IFileStorageService
|
||||
var result = new List<(string FileId, long Size)>();
|
||||
try
|
||||
{
|
||||
await EnsureBucketExistsAsync();
|
||||
var listArgs = new ListObjectsArgs().WithBucket(_bucketName).WithRecursive(true);
|
||||
|
||||
await foreach (var item in _minioClient.ListObjectsEnumAsync(listArgs).ConfigureAwait(false))
|
||||
{
|
||||
result.Add((item.Key, (long)item.Size));
|
||||
if (item != null)
|
||||
{
|
||||
result.Add((item.Key, (long)item.Size));
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user