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

Method split

backend/googlecloudstorage/googlecloudstorage.go:504–510  ·  view source on GitHub ↗

split returns bucket and bucketPath from the rootRelativePath relative to f.root

(rootRelativePath string)

Source from the content-addressed store, hash-verified

502// split returns bucket and bucketPath from the rootRelativePath
503// relative to f.root
504func (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
513func (o *Object) split() (bucket, bucketPath string) {

Callers 7

ListPMethod · 0.95
ListRMethod · 0.95
createDirectoryMarkerMethod · 0.95
MkdirMethod · 0.95
RmdirMethod · 0.95
CopyMethod · 0.95
splitMethod · 0.45

Calls 4

SplitFunction · 0.92
JoinFunction · 0.92
FromStandardNameMethod · 0.65
FromStandardPathMethod · 0.65

Tested by

no test coverage detected