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

Function PutAsTask

internal/fs/fs.go:119–125  ·  view source on GitHub ↗
(ctx context.Context, dstDirPath string, file model.FileStreamer)

Source from the content-addressed store, hash-verified

117}
118
119func PutAsTask(ctx context.Context, dstDirPath string, file model.FileStreamer) (task.TaskExtensionInfo, error) {
120 t, err := putAsTask(ctx, dstDirPath, file)
121 if err != nil {
122 log.Errorf("failed put %s: %+v", dstDirPath, err)
123 }
124 return t, err
125}
126
127func ArchiveMeta(ctx context.Context, path string, args model.ArchiveMetaArgs) (*model.ArchiveMetaProvider, error) {
128 meta, err := archiveMeta(ctx, path, args)

Callers 3

FsStreamFunction · 0.92
FsFormFunction · 0.92
CloseMethod · 0.92

Calls 1

putAsTaskFunction · 0.85

Tested by

no test coverage detected