set target Dir object when moving

This commit is contained in:
Chris Lu 2020-03-26 10:56:40 -07:00
parent 9e2e07b238
commit 1fef598347

View file

@ -99,6 +99,7 @@ func (c *FsCache) Move(oldPath util.FullPath, newPath util.FullPath) *FsNode {
if f.entry != nil {
f.entry.Name = f.Name
}
f.dir = target.parent.node.(*Dir)
}
parent.disconnectChild(target)