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

Function Copy

internal/fs/fs.go:79–85  ·  view source on GitHub ↗
(ctx context.Context, srcObjPath, dstDirPath string, skipHook ...bool)

Source from the content-addressed store, hash-verified

77}
78
79func Copy(ctx context.Context, srcObjPath, dstDirPath string, skipHook ...bool) (task.TaskExtensionInfo, error) {
80 res, err := transfer(ctx, copy, srcObjPath, dstDirPath, skipHook...)
81 if err != nil {
82 log.Errorf("failed copy %s to %s: %+v", srcObjPath, dstDirPath, err)
83 }
84 return res, err
85}
86
87func Merge(ctx context.Context, srcObjPath, dstDirPath string, skipHook ...bool) (task.TaskExtensionInfo, error) {
88 res, err := transfer(ctx, merge, srcObjPath, dstDirPath, skipHook...)

Callers 5

CopyMethod · 0.92
CopyMethod · 0.92
CopyMethod · 0.92
copyFilesFunction · 0.92
FsCopyFunction · 0.92

Calls 1

transferFunction · 0.85

Tested by

no test coverage detected