mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-03 10:37:35 +01:00
FUSE mount: rename correctly across folders
This commit is contained in:
1 parent
64000f5c45
commit
74e23e8d64
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user