mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 18:10:59 +00:00
Improve fs package and doc in prep to officially go public
This commit is contained in:
12
pkg/fs/rpath.go
Normal file
12
pkg/fs/rpath.go
Normal file
@@ -0,0 +1,12 @@
|
||||
// Copyright 2019 The Kubernetes Authors.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package fs
|
||||
|
||||
import "path/filepath"
|
||||
|
||||
// RPath returns a rooted path, e.g. "/hey/foo" as
|
||||
// opposed to "hey/foo".
|
||||
func RPath(elem ...string) string {
|
||||
return separator + filepath.Join(elem...)
|
||||
}
|
||||
Reference in New Issue
Block a user