MCPcopy
hub / github.com/rclone/rclone / split

Method split

backend/s3/s3.go:1331–1343  ·  view source on GitHub ↗

split returns bucket and bucketPath from the object

()

Source from the content-addressed store, hash-verified

1329
1330// split returns bucket and bucketPath from the object
1331func (o *Object) split() (bucket, bucketPath string) {
1332 bucket, bucketPath = o.fs.split(o.remote)
1333 // If there is an object version, then the path may have a
1334 // version suffix, if so remove it.
1335 //
1336 // If we are unlucky enough to have a file name with a valid
1337 // version path where this wasn't required (eg using
1338 // --s3-version-at) then this will go wrong.
1339 if o.versionID != nil {
1340 _, bucketPath = version.Remove(bucketPath)
1341 }
1342 return bucket, bucketPath
1343}
1344
1345// getClient makes an http client according to the options
1346func getClient(ctx context.Context, opt *Options) *http.Client {

Callers 8

headObjectMethod · 0.95
SetModTimeMethod · 0.95
OpenMethod · 0.95
prepareUploadMethod · 0.95
RemoveMethod · 0.95
setObjectRetentionMethod · 0.95
setObjectLegalHoldMethod · 0.95
SetTierMethod · 0.95

Calls 2

RemoveFunction · 0.92
splitMethod · 0.45

Tested by

no test coverage detected