mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
set target Dir object when moving
This commit is contained in:
parent
9e2e07b238
commit
1fef598347
|
@ -99,6 +99,7 @@ func (c *FsCache) Move(oldPath util.FullPath, newPath util.FullPath) *FsNode {
|
||||||
if f.entry != nil {
|
if f.entry != nil {
|
||||||
f.entry.Name = f.Name
|
f.entry.Name = f.Name
|
||||||
}
|
}
|
||||||
|
f.dir = target.parent.node.(*Dir)
|
||||||
}
|
}
|
||||||
parent.disconnectChild(target)
|
parent.disconnectChild(target)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue