Browse Source

return node itself as directory handler

pull/2174/head
Chris Lu 4 years ago
parent
commit
c795183887
  1. 2
      weed/filesys/dir.go

2
weed/filesys/dir.go

@ -141,7 +141,7 @@ func (dir *Dir) Create(ctx context.Context, req *fuse.CreateRequest,
var node fs.Node var node fs.Node
if isDirectory { if isDirectory {
node = dir.newDirectory(util.NewFullPath(dir.FullPath(), req.Name)) node = dir.newDirectory(util.NewFullPath(dir.FullPath(), req.Name))
return node, nil, nil
return node, node, nil
} }
node = dir.newFile(req.Name) node = dir.newFile(req.Name)

Loading…
Cancel
Save