k3s/vendor/github.com/opencontainers/runtime-tools/filepath/join.go

10 lines
216 B
Go
Raw Normal View History

2019-01-12 04:58:27 +00:00
package filepath
import "strings"
// Join is an explicit-OS version of path/filepath's Join.
func Join(os string, elem ...string) string {
sep := Separator(os)
return Clean(os, strings.Join(elem, string(sep)))
}