From 0bf9b3e02099e2c7b05035bff3f27c879891388f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Duffeck?= Date: Mon, 3 Jul 2023 14:34:47 +0200 Subject: [PATCH] Only tolerate ErrNotExist errors --- pkg/storage/utils/decomposedfs/metadata/messagepack_backend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/storage/utils/decomposedfs/metadata/messagepack_backend.go b/pkg/storage/utils/decomposedfs/metadata/messagepack_backend.go index a145bf62543..32d95084817 100644 --- a/pkg/storage/utils/decomposedfs/metadata/messagepack_backend.go +++ b/pkg/storage/utils/decomposedfs/metadata/messagepack_backend.go @@ -164,7 +164,7 @@ func (b MessagePackBackend) saveAttributes(ctx context.Context, path string, set attribs := map[string][]byte{} switch { case err != nil: - if _, ok := err.(*fs.PathError); !ok { + if !errors.Is(err, fs.ErrNotExist) { return err } case len(msgBytes) == 0: