MCPcopy Index your code
hub / github.com/rclone/rclone / updateObjectData

Method updateObjectData

backend/memory/memory.go:133–138  ·  view source on GitHub ↗

updateObjectData updates an object from (bucketName, bucketPath)

(bucketName, bucketPath string, od *objectData)

Source from the content-addressed store, hash-verified

131
132// updateObjectData updates an object from (bucketName, bucketPath)
133func (bi *bucketsInfo) updateObjectData(bucketName, bucketPath string, od *objectData) {
134 b := bi.makeBucket(bucketName)
135 b.mu.Lock()
136 b.objects[bucketPath] = od
137 b.mu.Unlock()
138}
139
140// removeObjectData removes an object from (bucketName, bucketPath) returning true if removed
141func (bi *bucketsInfo) removeObjectData(bucketName, bucketPath string) (removed bool) {

Callers 2

CopyMethod · 0.80
UpdateMethod · 0.80

Calls 3

makeBucketMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected