Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

avoid error log if not found

Chris Lu9eb2bee86a40
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go
index 3d65478da0..14905d4c44 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
}