mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
return node itself as directory handler
This commit is contained in:
parent
30dbe98dff
commit
c795183887
|
@ -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…
Reference in a new issue