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

Function getDirectUploadInfo

internal/fs/put.go:113–119  ·  view source on GitHub ↗
(ctx context.Context, tool, dstDirPath, dstName string, fileSize int64, overwrite bool)

Source from the content-addressed store, hash-verified

111}
112
113func getDirectUploadInfo(ctx context.Context, tool, dstDirPath, dstName string, fileSize int64, overwrite bool) (any, error) {
114 storage, dstDirActualPath, err := op.GetStorageAndActualPath(dstDirPath)
115 if err != nil {
116 return nil, errors.WithMessage(err, "failed get storage")
117 }
118 return op.GetDirectUploadInfo(ctx, tool, storage, dstDirActualPath, dstName, fileSize, overwrite)
119}

Callers 1

GetDirectUploadInfoFunction · 0.85

Calls 2

GetStorageAndActualPathFunction · 0.92
GetDirectUploadInfoFunction · 0.92

Tested by

no test coverage detected