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.

return node itself as directory handler

Chris Luc79518388755
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go
index 1af868d586..9a791e013c 100644
--- a/weed/filesys/dir.go
+++ b/weed/filesys/dir.go
@@ -141,7 +141,7 @@ func (dir *Dir) Create(ctx context.Context, req *fuse.CreateRequest,
var node fs.Node
if isDirectory {
node = dir.newDirectory(util.NewFullPath(dir.FullPath(), req.Name))
- return node, nil, nil
+ return node, node, nil
}
node = dir.newFile(req.Name)