From 74e23e8d64732c5221507db43399a16d43528794 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 22 Mar 2020 13:09:33 -0700 Subject: [PATCH] FUSE mount: rename correctly across folders --- weed/filesys/dir_rename.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filesys/dir_rename.go b/weed/filesys/dir_rename.go index 9b0c0fe6e..b590250f5 100644 --- a/weed/filesys/dir_rename.go +++ b/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)