Move filesys package up to make public.

This commit is contained in:
Jeffrey Regan
2019-10-14 12:26:23 -07:00
parent 237848a80b
commit a88ee3f93c
68 changed files with 136 additions and 137 deletions

12
filesys/rpath.go Normal file
View File

@@ -0,0 +1,12 @@
// 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...)
}