优化
This commit is contained in:
@@ -118,7 +118,10 @@ func (s *s3Storage) List(ctx context.Context, prefix, cursor string, limit int)
|
||||
if item.Err != nil {
|
||||
return nil, "", false, item.Err
|
||||
}
|
||||
out = append(out, s.file(item.Key, item.Size))
|
||||
file := s.file(item.Key, item.Size)
|
||||
file.LastModified = item.LastModified
|
||||
file.ContentType = item.ContentType
|
||||
out = append(out, file)
|
||||
if len(out) > limit {
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user