MCPcopy Create free account
hub / github.com/pydio/cells / CopyObject

Method CopyObject

common/nodes/binaries/handler-binary-store.go:234–239  ·  view source on GitHub ↗
(ctx context.Context, from *tree.Node, to *tree.Node, requestData *models.CopyRequestData)

Source from the content-addressed store, hash-verified

232}
233
234func (a *Handler) CopyObject(ctx context.Context, from *tree.Node, to *tree.Node, requestData *models.CopyRequestData) (models.ObjectInfo, error) {
235 if a.isStorePath(from.Path) || a.isStorePath(to.Path) {
236 return models.ObjectInfo{}, errors.WithMessage(errors.BinaryCannotWriteStore, a.StoreName)
237 }
238 return a.Next.CopyObject(ctx, from, to, requestData)
239}

Callers

nothing calls this directly

Calls 2

isStorePathMethod · 0.95
CopyObjectMethod · 0.65

Tested by

no test coverage detected