summaryrefslogtreecommitdiff
path: root/vendor/github.com/opencontainers/runtime-tools/filepath/join.go
blob: b865d237cceb5d96cbefd9b2a8e8b73d40b24117 (plain)
1
2
3
4
5
6
7
8
9
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)))
}