osutils

package
v0.0.0-...-ff0388d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(path string) string

func DirExists

func DirExists(path string) bool

Verify that a directory exists at the given relative path.

func FindInPathParents

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

func PathExists(path string) bool

Verify that the given relative path exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL