split returns bucket and bucketPath from the rootRelativePath relative to f.root
(rootRelativePath string)
| 1320 | // split returns bucket and bucketPath from the rootRelativePath |
| 1321 | // relative to f.root |
| 1322 | func (f *Fs) split(rootRelativePath string) (bucketName, bucketPath string) { |
| 1323 | bucketName, bucketPath = bucket.Split(bucket.Join(f.root, rootRelativePath)) |
| 1324 | if f.opt.DirectoryMarkers && strings.HasSuffix(bucketPath, "//") { |
| 1325 | bucketPath = bucketPath[:len(bucketPath)-1] |
| 1326 | } |
| 1327 | return f.opt.Enc.FromStandardName(bucketName), f.opt.Enc.FromStandardPath(bucketPath) |
| 1328 | } |
| 1329 | |
| 1330 | // split returns bucket and bucketPath from the object |
| 1331 | func (o *Object) split() (bucket, bucketPath string) { |
no test coverage detected