persist adds this object to the persistent cache
()
| 346 | |
| 347 | // persist adds this object to the persistent cache |
| 348 | func (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 | |
| 356 | func (o *Object) isTempFile() bool { |
| 357 | _, err := o.CacheFs.cache.SearchPendingUpload(o.abs()) |