[#160] Classify only regular objects as root

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-11-06 17:06:15 +03:00 committed by Alex Vanin
parent 1c12f6bcbf
commit 2c50032831

View file

@ -99,7 +99,7 @@ func objectIndices(obj *object.Object, parent bool) []bucketItem {
res := make([]bucketItem, 0, 5+len(as))
rootVal := v2object.BooleanPropertyValueTrue
if obj.HasParent() {
if obj.GetType() != objectSDK.TypeRegular || obj.HasParent() {
rootVal = ""
}