filefinder

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileFinder

type FileFinder struct {
	// contains filtered or unexported fields
}

func New

func New(paths []string) *FileFinder

NewFileFinder creates a new FileFinder object with the provided array of strings.

func (*FileFinder) AnyExists

func (ff *FileFinder) AnyExists() bool

anyExist returns true if any of the file paths exist, and false if none exist.

func (*FileFinder) FirstExists

func (ff *FileFinder) FirstExists() string

firstExists returns the first file path that exists on the file system.

Jump to

Keyboard shortcuts

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