FUSE mount: rename correctly across folders

This commit is contained in:
Chris Lu 2020-03-22 13:09:33 -07:00
parent 64000f5c45
commit 74e23e8d64

View file

@ -43,7 +43,7 @@ func (dir *Dir) Rename(ctx context.Context, req *fuse.RenameRequest, newDirector
oldFileNode := dir.wfs.getNode(oldPath, func() fs.Node {
return nil
})
newDirNode := dir.wfs.getNode(filer2.FullPath(dir.Path), func() fs.Node {
newDirNode := dir.wfs.getNode(filer2.FullPath(newDir.Path), func() fs.Node {
return nil
})
dir.wfs.forgetNode(newPath)