MCPcopy
hub / github.com/rclone/rclone / Open

Function Open

fs/operations/reopen.go:123–126  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

121//
122// Use this instead of calling the Open method on fs.Objects
123func 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//

Callers 13

runTestCaseMethod · 0.92
newFileFunction · 0.92
ArchiveExtractFunction · 0.92
ArchiveListFunction · 0.92
readFromMethod · 0.92
copyChunkMethod · 0.70
manualCopyMethod · 0.70
checkIdenticalDownloadFunction · 0.70
checkSumMethod · 0.70
ParseSumFileFunction · 0.70
ReadFileFunction · 0.70
HashSumFunction · 0.70

Calls 2

GetConfigFunction · 0.92
NewReOpenFunction · 0.85

Tested by 1

runTestCaseMethod · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…