MCPcopy
hub / github.com/rclone/rclone / shouldRetry

Function shouldRetry

backend/mega/mega.go:201–207  ·  view source on GitHub ↗

shouldRetry returns a boolean as to whether this err deserves to be retried. It returns the err as a convenience

(ctx context.Context, err error)

Source from the content-addressed store, hash-verified

199// shouldRetry returns a boolean as to whether this err deserves to be
200// retried. It returns the err as a convenience
201func shouldRetry(ctx context.Context, err error) (bool, error) {
202 if fserrors.ContextError(ctx, &err) {
203 return false, err
204 }
205 // Let the mega library handle the low level retries
206 return false, err
207}
208
209// readMetaDataForPath reads the metadata from the path
210func (f *Fs) readMetaDataForPath(ctx context.Context, remote string) (info *mega.Node, err error) {

Callers 10

mkdirMethod · 0.70
CleanUpMethod · 0.70
deleteNodeMethod · 0.70
moveMethod · 0.70
MergeDirsMethod · 0.70
AboutMethod · 0.70
getChunkMethod · 0.70
CloseMethod · 0.70
OpenMethod · 0.70
UpdateMethod · 0.70

Calls 1

ContextErrorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…