split returns bucket and bucketPath from the rootRelativePath relative to f.root
(rootRelativePath string)
| 502 | // split returns bucket and bucketPath from the rootRelativePath |
| 503 | // relative to f.root |
| 504 | func (f *Fs) split(rootRelativePath string) (bucketName, bucketPath string) { |
| 505 | bucketName, bucketPath = bucket.Split(bucket.Join(f.root, rootRelativePath)) |
| 506 | if f.opt.DirectoryMarkers && strings.HasSuffix(bucketPath, "//") { |
| 507 | bucketPath = bucketPath[:len(bucketPath)-1] |
| 508 | } |
| 509 | return f.opt.Enc.FromStandardName(bucketName), f.opt.Enc.FromStandardPath(bucketPath) |
| 510 | } |
| 511 | |
| 512 | // split returns bucket and bucketPath from the object |
| 513 | func (o *Object) split() (bucket, bucketPath string) { |
no test coverage detected