Open makes a handle which will reopen itself and seek to where it was on errors. If an fs.HashesOption is set this will be applied when reading from the start. If an fs.RangeOption is set then this will applied when reading from the start, and updated on retries. It will obey LowLevelRetries in t
(ctx context.Context, src fs.Object, options ...fs.OpenOption)
| 121 | // |
| 122 | // Use this instead of calling the Open method on fs.Objects |
| 123 | func Open(ctx context.Context, src fs.Object, options ...fs.OpenOption) (rc *ReOpen, err error) { |
| 124 | maxTries := fs.GetConfig(ctx).LowLevelRetries |
| 125 | return NewReOpen(ctx, src, maxTries, options...) |
| 126 | } |
| 127 | |
| 128 | // open the underlying handle - call with lock held |
| 129 | // |
searching dependent graphs…