files

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecsInPath

func ExecsInPath(path string, lookalike func(string) bool) ([]string, error)

func IsDir

func IsDir(path string) bool

IsDir returns true if the given path exists and is a directory. It delegates to os.Stat and FileInfo.IsDir.

func IsExecutable

func IsExecutable(info fs.FileInfo) bool

IsExecutable returns true if the given file info is executable. On Windows, it just checks if the file extension is ".exe" or not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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