MCPcopy
hub / github.com/git-lfs/git-lfs / NewFileBodyWithCallback

Function NewFileBodyWithCallback

tools/copycallback.go:22–24  ·  view source on GitHub ↗
(f *os.File, totalSize int64, cb CopyCallback)

Source from the content-addressed store, hash-verified

20}
21
22func NewFileBodyWithCallback(f *os.File, totalSize int64, cb CopyCallback) *BodyWithCallback {
23 return NewBodyWithCallback(NewFileBody(f), totalSize, cb)
24}
25
26func NewBodyWithCallback(body ReadSeekCloser, totalSize int64, cb CopyCallback) *BodyWithCallback {
27 return &BodyWithCallback{

Callers 2

DoTransferMethod · 0.92
doUploadMethod · 0.92

Calls 2

NewBodyWithCallbackFunction · 0.85
NewFileBodyFunction · 0.85

Tested by

no test coverage detected