mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-04-05 20:52:50 +08:00
FUSE mount: rename correctly across folders
This commit is contained in:
parent
64000f5c45
commit
74e23e8d64
@ -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…
Reference in New Issue
Block a user