Browse Source

set target Dir object when moving

pull/1255/head
Chris Lu 5 years ago
parent
commit
1fef598347
  1. 1
      weed/filesys/fscache.go

1
weed/filesys/fscache.go

@ -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…
Cancel
Save