(ctx context.Context, from *tree.Node, to *tree.Node, requestData *models.CopyRequestData)
| 121 | } |
| 122 | |
| 123 | func (f *StructStorageHandler) CopyObject(ctx context.Context, from *tree.Node, to *tree.Node, requestData *models.CopyRequestData) (models.ObjectInfo, error) { |
| 124 | i, e := f.Next.CopyObject(ctx, from, to, requestData) |
| 125 | if e == nil { |
| 126 | bi, _ := nodes.GetBranchInfo(ctx, "to") |
| 127 | c := nodes.WithBranchInfo(ctx, "in", bi) |
| 128 | f.publish(c, "to", tree.NodeChangeEvent_CREATE, to.Clone()) |
| 129 | } |
| 130 | return i, e |
| 131 | } |
| 132 | |
| 133 | func (f *StructStorageHandler) PutObject(ctx context.Context, node *tree.Node, reader io.Reader, requestData *models.PutRequestData) (models.ObjectInfo, error) { |
| 134 | i, e := f.Next.PutObject(ctx, node, reader, requestData) |
nothing calls this directly
no test coverage detected