fileutils

package
v5.33.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: AGPL-3.0, Apache-2.0 Imports: 2 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindDir

func FindDir(dir string) (string, bool)

fileutils.FindDir looks for the given directory in nearby ancestors relative to the current working directory as well as the directory of the executable, falling back to `./` if not found.

func FindDirRelBinary added in v5.24.0

func FindDirRelBinary(dir string) (string, bool)

FindDirRelBinary looks for the given directory in nearby ancestors relative to the directory of the executable, then relative to the working directory, falling back to `./` if not found.

func FindFile

func FindFile(path string) string

FindFile looks for the given file in nearby ancestors relative to the current working directory as well as the directory of the executable.

func FindPath

func FindPath(path string, baseSearchPaths []string, filter func(os.FileInfo) bool) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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