This commit is contained in:
Халимов Рустам
2026-03-29 14:26:14 +03:00
parent 9bae9752cc
commit 22bc964f27
29 changed files with 405 additions and 130 deletions

View File

@@ -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)