MCPcopy
hub / github.com/rclone/rclone / persist

Method persist

backend/cache/object.go:348–354  ·  view source on GitHub ↗

persist adds this object to the persistent cache

()

Source from the content-addressed store, hash-verified

346
347// persist adds this object to the persistent cache
348func (o *Object) persist() *Object {
349 err := o.CacheFs.cache.AddObject(o)
350 if err != nil {
351 fs.Errorf(o, "failed to cache object: %v", err)
352 }
353 return o
354}
355
356func (o *Object) isTempFile() bool {
357 _, err := o.CacheFs.cache.SearchPendingUpload(o.abs())

Callers 9

refreshFromSourceMethod · 0.95
SetModTimeMethod · 0.95
UpdateMethod · 0.95
HashMethod · 0.95
NewObjectMethod · 0.80
ListMethod · 0.80
putMethod · 0.80
CopyMethod · 0.80
MoveMethod · 0.80

Calls 2

ErrorfFunction · 0.92
AddObjectMethod · 0.45

Tested by

no test coverage detected