MCPcopy
hub / github.com/rclone/rclone / Update

Method Update

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

Update in to the object with the modTime given of the given size When called from outside an Fs by rclone, src.Size() will always be >= 0. But for unknown-sized objects (indicated by src.Size() == -1), Upload should either return an error or update the object properly (rather than e.g. calling pani

(ctx context.Context, in io.Reader, src ObjectInfo, options ...OpenOption)

Source from the content-addressed store, hash-verified

95 // But for unknown-sized objects (indicated by src.Size() == -1), Upload should either
96 // return an error or update the object properly (rather than e.g. calling panic).
97 Update(ctx context.Context, in io.Reader, src ObjectInfo, options ...OpenOption) error
98
99 // Removes this object
100 Remove(ctx context.Context) error

Callers 15

PurgeTempUploadsMethod · 0.65
connectMethod · 0.65
AddBatchDirMethod · 0.65
RemoveDirMethod · 0.65
ExpireDirMethod · 0.65
AddObjectMethod · 0.65
RemoveObjectMethod · 0.65
AddChunkMethod · 0.65
CleanChunksBySizeMethod · 0.65
PurgeMethod · 0.65
addPendingUploadMethod · 0.65
getPendingUploadMethod · 0.65

Implementers 15

Objectbackend/cache/object.go
Objectbackend/mega/mega.go
Objectbackend/yandex/yandex.go
Objectbackend/qingstor/qingstor.go
Objectbackend/ulozto/ulozto.go
Objectbackend/hdfs/object.go
Objectbackend/googlephotos/googlephotos.go
Objectbackend/mailru/mailru.go
Objectbackend/zoho/zoho.go
Objectbackend/filelu/filelu_object.go
Objectbackend/union/entry.go
Objectbackend/http/http.go

Calls

no outgoing calls

Tested by 1

PurgeTempUploadsMethod · 0.52