From 99e4bb817c0f131e26b604e04931664f64afc543 Mon Sep 17 00:00:00 2001 From: Sydonian <794346190@qq.com> Date: Tue, 22 Apr 2025 11:17:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/internal/mount/fuse/dir_node.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/internal/mount/fuse/dir_node.go b/client/internal/mount/fuse/dir_node.go index 33fc50b..30e02e5 100644 --- a/client/internal/mount/fuse/dir_node.go +++ b/client/internal/mount/fuse/dir_node.go @@ -85,8 +85,11 @@ func (n *DirNode) Lookup(ctx context.Context, name string, out *fuse.EntryOut) ( child, err := n.dir.Child(ctx, name) if err != nil { - log.Warnf("child: %v", err) - return nil, translateError(err) + e2 := translateError(err) + if e2 != syscall.ENOENT { + log.Warnf("child: %v", err) + } + return nil, e2 } switch child := child.(type) {