MCPcopy Index your code
hub / github.com/rclone/rclone / Open

Method Open

fs/chunkedreader/sequential.go:163–171  ·  view source on GitHub ↗

Open forces the connection to be opened

()

Source from the content-addressed store, hash-verified

161
162// Open forces the connection to be opened
163func (cr *sequential) Open() (ChunkedReader, error) {
164 cr.mu.Lock()
165 defer cr.mu.Unlock()
166
167 if cr.rc != nil && cr.offset != -1 {
168 return cr, nil
169 }
170 return cr, cr.openRange()
171}
172
173// openRange will open the source Object with the current chunk range
174//

Callers

nothing calls this directly

Calls 3

openRangeMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected