split returns bucket and bucketPath from the object
()
| 1329 | |
| 1330 | // split returns bucket and bucketPath from the object |
| 1331 | func (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 |
| 1346 | func getClient(ctx context.Context, opt *Options) *http.Client { |
no test coverage detected