From 41c815441b5c90cf20ee800237f7741482157e7a Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Mon, 6 Jun 2022 17:07:38 +0300 Subject: [PATCH] [#502] Fix list empty bucket Signed-off-by: Denis Kirillov --- internal/neofs/tree.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/neofs/tree.go b/internal/neofs/tree.go index 01761bc..ac212bd 100644 --- a/internal/neofs/tree.go +++ b/internal/neofs/tree.go @@ -614,6 +614,9 @@ func (c *TreeClient) getSubTreeByPrefix(ctx context.Context, cnrID *cid.ID, tree subTree, err := c.getSubTree(ctx, cnrID, treeID, rootID, 1) if err != nil { + if errors.Is(err, layer.ErrNodeNotFound) { + return nil, nil + } return nil, err }