fileutils

package
Version: v5.39.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: AGPL-3.0, Apache-2.0 Imports: 2 Imported by: 19

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL