From 3d7c88de5f6f891ca709f7bded0b5a3005caee87 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sun, 13 Apr 2025 18:43:45 +0800 Subject: [PATCH] =?UTF-8?q?s3=20=E4=B8=80=E6=AC=A1=E6=80=A710000=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fs/s3_adapter.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/s3_adapter.go b/fs/s3_adapter.go index 0281c1f..8021db1 100644 --- a/fs/s3_adapter.go +++ b/fs/s3_adapter.go @@ -56,8 +56,9 @@ func (s *S3Adapter) GetFileList(ctx context.Context, dirPath string, relDt time. } listObjectsInput := &s3.ListObjectsV2Input{ - Bucket: aws.String(s.StorageConfig.S3.Bucket), - Prefix: aws.String(path.Join(s.StorageConfig.S3.Prefix, dirPath)), + Bucket: aws.String(s.StorageConfig.S3.Bucket), + Prefix: aws.String(path.Join(s.StorageConfig.S3.Prefix, dirPath)), + MaxKeys: aws.Int32(1000), } client, err := s.getClient()