|
|
@ -379,7 +379,7 @@ func (storage *storage) ListObjects(bucket string, resources mstorage.BucketReso |
|
|
|
} |
|
|
|
} |
|
|
|
metadataList = append(metadataList, metadata) |
|
|
|
metadataList = append(metadataList, metadata) |
|
|
|
case delimited != "": |
|
|
|
case delimited != "": |
|
|
|
resources.CommonPrefixes = helpers.AppendUstr(resources.CommonPrefixes, delimited) |
|
|
|
resources.CommonPrefixes = helpers.AppendUniqStr(resources.CommonPrefixes, delimited) |
|
|
|
} |
|
|
|
} |
|
|
|
case resources.Delimiter != "" && strings.HasPrefix(name, resources.Prefix): |
|
|
|
case resources.Delimiter != "" && strings.HasPrefix(name, resources.Prefix): |
|
|
|
delimited := delimiter(name, resources.Delimiter) |
|
|
|
delimited := delimiter(name, resources.Delimiter) |
|
|
@ -394,7 +394,7 @@ func (storage *storage) ListObjects(bucket string, resources mstorage.BucketReso |
|
|
|
} |
|
|
|
} |
|
|
|
metadataList = append(metadataList, metadata) |
|
|
|
metadataList = append(metadataList, metadata) |
|
|
|
case delimited != "": |
|
|
|
case delimited != "": |
|
|
|
resources.CommonPrefixes = helpers.AppendUstr(resources.CommonPrefixes, delimited) |
|
|
|
resources.CommonPrefixes = helpers.AppendUniqStr(resources.CommonPrefixes, delimited) |
|
|
|
} |
|
|
|
} |
|
|
|
case strings.HasPrefix(name, resources.Prefix): |
|
|
|
case strings.HasPrefix(name, resources.Prefix): |
|
|
|
metadata := mstorage.ObjectMetadata{ |
|
|
|
metadata := mstorage.ObjectMetadata{ |
|
|
|