We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi guys, i create a function that listing the content inside s3 folder, the memory increased when i iterate result from listObjectsEnumAsync.
public async Task<List<string>?> GetItemsFromDirectory(string path) { List<string> listDirectory = new List<string>(); string prefix = path + '/'; try { var listArgs = new ListObjectsArgs() .WithBucket(_garageConfig.BucketName) .WithPrefix(prefix) .WithRecursive(true); await foreach (var item in _minioClient.ListObjectsEnumAsync(listArgs).Reverse().ConfigureAwait(false)) if (item.Size > 0) { // empty process } _logger!.LogInformation("Successfully retrieved list of items in {0} directory", prefix); } catch (Exception e) { _logger!.LogError("[ListDirectory] Exception: {0}",e); return null; } return listDirectory; }
am i missed the implementation of listObjectsEnumAsync?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi guys, i create a function that listing the content inside s3 folder, the memory increased when i iterate result from listObjectsEnumAsync.
public async Task<List<string>?> GetItemsFromDirectory(string path) { List<string> listDirectory = new List<string>(); string prefix = path + '/'; try { var listArgs = new ListObjectsArgs() .WithBucket(_garageConfig.BucketName) .WithPrefix(prefix) .WithRecursive(true); await foreach (var item in _minioClient.ListObjectsEnumAsync(listArgs).Reverse().ConfigureAwait(false)) if (item.Size > 0) { // empty process } _logger!.LogInformation("Successfully retrieved list of items in {0} directory", prefix); } catch (Exception e) { _logger!.LogError("[ListDirectory] Exception: {0}",e); return null; } return listDirectory; }
am i missed the implementation of listObjectsEnumAsync?
The text was updated successfully, but these errors were encountered: