MCPcopy
hub / github.com/rclone/rclone / NewObject

Method NewObject

fs/types.go:37–37  ·  view source on GitHub ↗

NewObject finds the Object at remote. If it can't be found it returns the error ErrorObjectNotFound. If remote points to a directory then it should return ErrorIsDir if possible without doing any extra work, otherwise ErrorObjectNotFound.

(ctx context.Context, remote string)

Source from the content-addressed store, hash-verified

35 // ErrorIsDir if possible without doing any extra work,
36 // otherwise ErrorObjectNotFound.
37 NewObject(ctx context.Context, remote string) (Object, error)
38
39 // Put in to the remote path with the modTime given of the given size
40 //

Callers 15

testGETFunction · 0.95
runTestStepMethod · 0.95
TestSyncCompareDestFunction · 0.95
TestMultithreadCopyFunction · 0.95
NewObjectMethod · 0.65
ListMethod · 0.65
refreshFromSourceMethod · 0.65
TestInternalObjNotFoundFunction · 0.65

Implementers 15

Fsbackend/cache/cache.go
Fsbackend/mega/mega.go
Fsbackend/yandex/yandex.go
Fsbackend/qingstor/qingstor.go
Fsbackend/ulozto/ulozto.go
Fsbackend/hdfs/fs.go
Fsbackend/googlephotos/googlephotos.go
Fsbackend/mailru/mailru.go
Fsbackend/zoho/zoho.go
Fsbackend/filelu/filelu.go
Fsbackend/union/union.go
Fsbackend/http/http.go

Calls

no outgoing calls

Tested by 15

testGETFunction · 0.76
runTestStepMethod · 0.76
TestSyncCompareDestFunction · 0.76
TestMultithreadCopyFunction · 0.76
TestInternalObjNotFoundFunction · 0.52
writeObjectBytesMethod · 0.52
updateObjectRemoteMethod · 0.52