diff --git a/internal/s3/mock.go b/internal/s3/mock.go index 4dc911b..20beb27 100644 --- a/internal/s3/mock.go +++ b/internal/s3/mock.go @@ -64,9 +64,7 @@ func (m *mockS3) ListObjectsRecursive(ctx context.Context, id types.ID) ([]Objec for k, v := range m.objects { if k.Bucket == id.Bucket { if strings.HasPrefix(k.Key, id.Key) { - if k.Parent().Key == id.Key { - results = append(results, *mockObjToObject(v, k)) - } + results = append(results, *mockObjToObject(v, k)) } } }