utils

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExists

func DirExists(path string) (bool, error)

func EnsureTempDirectory added in v1.4.0

func EnsureTempDirectory(inDir string) (string, error)

func FileExists

func FileExists(path string) (bool, error)

FileExists returns true if path exists

func IsFileExecutable

func IsFileExecutable(f os.FileInfo) bool

func RecursiveGetExecutablePaths

func RecursiveGetExecutablePaths(dir string) ([]string, error)

RecursiveGetExecutablePaths finds recursively all executable files inside a dir directory. Hidden directories and files are ignored.

func RequireExistingDirectory added in v1.4.0

func RequireExistingDirectory(inDir string) (dir string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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