(ctx context.Context, srcObjPath, dstDirPath string, skipHook ...bool)
| 77 | } |
| 78 | |
| 79 | func 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 | |
| 87 | func Merge(ctx context.Context, srcObjPath, dstDirPath string, skipHook ...bool) (task.TaskExtensionInfo, error) { |
| 88 | res, err := transfer(ctx, merge, srcObjPath, dstDirPath, skipHook...) |