filesearch

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShellExpand added in v0.14.1

func ShellExpand(filename string) (string, error)

ShellExpand uses the shell to expand variables and ~ from a filename. On Windows the function simply returns the filename unchanged

Types

type Finder added in v0.31.0

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

func NewFinder added in v0.31.0

func NewFinder() Finder

func (Finder) FindConfigurationFile added in v0.31.0

func (f Finder) FindConfigurationFile(configFile string) (string, error)

FindConfigurationFile returns the path of the configuration file If the file doesn't have an extension, it will search for all possible extensions

func (Finder) FindConfigurationIncludes added in v0.31.0

func (f Finder) FindConfigurationIncludes(configFile string, includes []string) ([]string, error)

FindConfigurationIncludes finds includes (glob patterns) relative to the configuration file.

func (Finder) FindResticBinary added in v0.31.0

func (f Finder) FindResticBinary(configLocation string) (string, error)

FindResticBinary returns the path of restic executable

Jump to

Keyboard shortcuts

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