filesearch

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	XDGAppName = "resticprofile"
)

Functions

func FindConfigurationFile

func 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 FindConfigurationIncludes added in v0.16.0

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

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

func FindResticBinary

func FindResticBinary(configLocation string) (string, error)

FindResticBinary returns the path of restic executable

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

This section is empty.

Jump to

Keyboard shortcuts

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