[#307] Filter system metadata
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
d532eb710f
commit
c202893563
4 changed files with 11 additions and 2 deletions
|
@ -546,6 +546,10 @@ func isSystem(obj *data.ObjectInfo) bool {
|
|||
len(obj.Headers[attrVersionsIgnore]) > 0
|
||||
}
|
||||
|
||||
func IsSystemHeader(key string) bool {
|
||||
return strings.HasPrefix(key, "S3-")
|
||||
}
|
||||
|
||||
func trimAfterObjectName(startAfter string, objects []*data.ObjectInfo) []*data.ObjectInfo {
|
||||
if len(objects) != 0 && objects[len(objects)-1].Name <= startAfter {
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue