rclone/vendor/storj.io/common/storj/path.go
Caleb Case e7bd392a69 backend/tardigrade: Upgrade to uplink v1.0.6
This fixes an important bug with listing that affects users with more
than 500 objects in a listing operation.
2020-05-29 18:00:08 +01:00

22 lines
429 B
Go

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
package storj
import (
"strings"
)
// Path represents a object path.
type Path = string
// SplitPath splits path into a slice of path components.
func SplitPath(path Path) []string {
return strings.Split(path, "/")
}
// JoinPaths concatenates paths to a new single path.
func JoinPaths(paths ...Path) Path {
return strings.Join(paths, "/")
}