mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-18 03:55:15 +00:00
13 lines
290 B
Go
13 lines
290 B
Go
// Copyright 2019 The Kubernetes Authors.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package filesys
|
|
|
|
import "path/filepath"
|
|
|
|
// RootedPath returns a rooted path, e.g. "/foo/bar" as
|
|
// opposed to "foo/bar".
|
|
func RootedPath(elem ...string) string {
|
|
return separator + filepath.Join(elem...)
|
|
}
|