return node itself as directory handler

This commit is contained in:
Chris Lu 2021-06-30 17:42:33 -07:00
parent 30dbe98dff
commit c795183887

View file

@ -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)