Browse Source

FUSE mount: rename correctly across folders

pull/1255/head
Chris Lu 5 years ago
parent
commit
74e23e8d64
  1. 2
      weed/filesys/dir_rename.go

2
weed/filesys/dir_rename.go

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

Loading…
Cancel
Save