MCPcopy
hub / github.com/rclone/rclone / isTempFile

Method isTempFile

backend/cache/object.go:356–365  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

354}
355
356func (o *Object) isTempFile() bool {
357 _, err := o.CacheFs.cache.SearchPendingUpload(o.abs())
358 if err != nil {
359 o.CacheType = objectInCache
360 return false
361 }
362
363 o.CacheType = objectPendingUpload
364 return true
365}
366
367func (o *Object) tempFileStartedUpload() bool {
368 started, err := o.CacheFs.cache.SearchPendingUpload(o.abs())

Callers 5

refreshFromSourceMethod · 0.95
UpdateMethod · 0.95
RemoveMethod · 0.95
CopyMethod · 0.80
MoveMethod · 0.80

Calls 2

absMethod · 0.95
SearchPendingUploadMethod · 0.80

Tested by

no test coverage detected