优化
This commit is contained in:
@@ -141,7 +141,11 @@ func (s *awsStorage) List(ctx context.Context, prefix, cursor string, limit int)
|
||||
if object.Size != nil {
|
||||
size = *object.Size
|
||||
}
|
||||
items = append(items, s.file(*object.Key, size))
|
||||
item := s.file(*object.Key, size)
|
||||
if object.LastModified != nil {
|
||||
item.LastModified = *object.LastModified
|
||||
}
|
||||
items = append(items, item)
|
||||
}
|
||||
next := ""
|
||||
if result.NextContinuationToken != nil {
|
||||
|
||||
Reference in New Issue
Block a user