go: go.chromium.org/chromiumos/infra/go/internal/osutils Index | Files

package osutils

import "go.chromium.org/chromiumos/infra/go/internal/osutils"

Index

Package Files

osutils.go

func Abs Uses

func Abs(path string) string

func DirExists Uses

func DirExists(path string) bool

Verify that a directory exists at the given relative path.

func FindInPathParents Uses

func FindInPathParents(
    pathToFind string,
    startPath string,
    endPath string,
    testFunc func(string) bool) string

Look for a relative path, ascending through parent directories.

Args:

pathToFind: The relative path to look for.
startPath: The path to start the search from.  If |startPath| is a
  directory, it will be included in the directories that are searched.
endPath: The path to stop searching.
testFunc: The function to use to verify the relative path.

func PathExists Uses

func PathExists(path string) bool

Verify that the given relative path exists.

Package osutils imports 2 packages (graph). Updated 2019-09-20. Refresh now. Tools for package owners.