mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Small cleanups, no change in exec.
This commit is contained in:
@@ -53,6 +53,11 @@ func (realFS) RemoveAll(name string) error {
|
||||
// Open delegates to os.Open.
|
||||
func (realFS) Open(name string) (File, error) { return os.Open(name) }
|
||||
|
||||
// EvalSymlinks delegates to filepath.EvalSymlinks.
|
||||
func (realFS) EvalSymlinks(path string) (string, error) {
|
||||
return filepath.EvalSymlinks(path)
|
||||
}
|
||||
|
||||
// Exists returns true if os.Stat succeeds.
|
||||
func (realFS) Exists(name string) bool {
|
||||
_, err := os.Stat(name)
|
||||
|
||||
Reference in New Issue
Block a user