From 3ffb4ed26e71a738496655a9139c81286f31c5a4 Mon Sep 17 00:00:00 2001 From: Brian McGee <brian@bmcgee.ie> Date: Mon, 9 Oct 2023 11:16:13 +0100 Subject: [PATCH] fix: support recursive parameter in directory request --- pkg/directory/grpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/directory/grpc.go b/pkg/directory/grpc.go index 7a12563..2bbab1e 100644 --- a/pkg/directory/grpc.go +++ b/pkg/directory/grpc.go @@ -96,7 +96,7 @@ func (s *service) Get(req *capb.GetDirectoryRequest, server capb.DirectoryServic digest := store.Digest(dir.Digest) if d, err := fetch(digest); err != nil { return err - } else { + } else if req.Recursive { dirs = append(dirs, d) } }