From 9eb2bee86a40bf6c5f4d584e397426d00d84db99 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 24 Dec 2018 17:45:26 -0800 Subject: [PATCH] avoid error log if not found --- weed/filesys/dir.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go index 3d65478da..14905d4c4 100644 --- a/weed/filesys/dir.go +++ b/weed/filesys/dir.go @@ -64,6 +64,9 @@ func (dir *Dir) Attr(context context.Context, attr *fuse.Attr) error { glog.V(1).Infof("read dir %s attr: %v", dir.Path, request) resp, err := client.LookupDirectoryEntry(context, request) if err != nil { + if err == filer2.ErrNotFound { + return nil + } glog.V(0).Infof("read dir %s attr %v: %v", dir.Path, request, err) return err }