MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / Copy

Method Copy

drivers/crypt/driver.go:341–344  ·  view source on GitHub ↗
(ctx context.Context, srcObj, dstDir model.Obj)

Source from the content-addressed store, hash-verified

339}
340
341func (d *Crypt) Copy(ctx context.Context, srcObj, dstDir model.Obj) error {
342 _, err := fs.Copy(ctx, srcObj.GetPath(), dstDir.GetPath())
343 return err
344}
345
346func (d *Crypt) Remove(ctx context.Context, obj model.Obj) error {
347 remoteStorage, remoteActualPath, err := op.GetStorageAndActualPath(obj.GetPath())

Callers

nothing calls this directly

Calls 2

CopyFunction · 0.92
GetPathMethod · 0.65

Tested by

no test coverage detected